mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 18:19:19 +02:00
reformat: use auto on certain types
This commit is contained in:
@@ -52,7 +52,7 @@ void ui::keymapper_panel::render_contents()
|
||||
ImGui::Text(simulation::Commands_descriptions[static_cast<std::size_t>(binding.first)].name.c_str());
|
||||
|
||||
// Binding description
|
||||
std::string description = std::get<std::string>(binding.second);
|
||||
auto description = std::get<std::string>(binding.second);
|
||||
ImGui::SameLine(260);
|
||||
ImGui::Text((description.size() > 0 ? description : "(No description)").c_str());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user