mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 15:59:18 +02:00
reformat: use auto on certain types
This commit is contained in:
@@ -855,7 +855,7 @@ command_queue::pop( command_data &Command, uint32_t const Recipient ) {
|
||||
}
|
||||
|
||||
bool command_queue::is_network_target(uint32_t const Recipient) {
|
||||
const command_target target = (command_target)(Recipient & ~0xffff);
|
||||
const auto target = (command_target)(Recipient & ~0xffff);
|
||||
|
||||
if (target == command_target::entity)
|
||||
return false;
|
||||
|
||||
@@ -251,7 +251,7 @@ void keyboard_input::dump_bindings()
|
||||
stream << "none";
|
||||
}
|
||||
|
||||
std::string description = std::get<std::string>(binding.second);
|
||||
auto description = std::get<std::string>(binding.second);
|
||||
if (description.size() > 0)
|
||||
stream << " // " << description << "\r\n";
|
||||
}
|
||||
|
||||
@@ -87,8 +87,8 @@ void zmq_input::poll()
|
||||
std::getline(stream, id1, '/');
|
||||
std::getline(stream, id2, '/');
|
||||
|
||||
input_type type = input_type::none;
|
||||
user_command cmd1 = user_command::none, cmd2 = user_command::none;
|
||||
auto type = input_type::none;
|
||||
auto cmd1 = user_command::none, cmd2 = user_command::none;
|
||||
|
||||
auto cmd1_it = nametocommandmap.find(id1);
|
||||
if (cmd1_it != nametocommandmap.end())
|
||||
|
||||
Reference in New Issue
Block a user