From eb255e68706c5fcc61bf17a81427c34505c3d519 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 12 Aug 2011 23:42:00 +0200 Subject: Clean up key names handling Constify keycode and move the static array of localizable names from the guiKeyChangeMenu header to the implementation file, changing its name. --- src/keycode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/keycode.cpp') diff --git a/src/keycode.cpp b/src/keycode.cpp index f014914d0..323d12e74 100644 --- a/src/keycode.cpp +++ b/src/keycode.cpp @@ -206,7 +206,7 @@ static const char *KeyNames[] = "-", "-", "-", "-", "-", "-", "-", "-", "Attn", "CrSel", "ExSel", "Erase OEF", "Play", "Zoom", "PA1", "OEM Clear", "-" }; -std::string keycode_to_keyname(s32 keycode) +const std::string &keycode_to_keyname(s32 keycode) { return KeyNames[keycode]; } -- cgit v1.2.3