summaryrefslogtreecommitdiff
path: root/src/gui/windowmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r--src/gui/windowmenu.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp
index 01194c0b..c6e52ee7 100644
--- a/src/gui/windowmenu.cpp
+++ b/src/gui/windowmenu.cpp
@@ -162,21 +162,21 @@ void WindowMenu::valueChanged(const gcn::SelectionEvent &event)
}
}
-static std::string createShortcutCaption(const std::string& text,
- KeyboardConfig::KeyAction key)
+static std::string createShortcutCaption(const std::string &text,
+ KeyboardConfig::KeyAction key)
{
std::string caption = gettext(text.c_str());
if (key != KeyboardConfig::KEY_NO_VALUE)
{
caption += " (";
- caption += SDL_GetKeyName((SDL_Scancode) keyboard.getKeyValue(key));
+ caption += SDL_GetKeyName(keyboard.getKeyValue(key));
caption += ")";
}
return caption;
}
-void WindowMenu::addButton(const std::string& text, int &x, int &h,
- const std::string& iconPath,
+void WindowMenu::addButton(const std::string &text, int &x, int &h,
+ const std::string &iconPath,
KeyboardConfig::KeyAction key)
{
auto *btn = new Button("", text, this);