1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Reduce gettext wide/narrow and string/char* conversions

This commit is contained in:
ShadowNinja 2015-02-01 17:59:23 -05:00 committed by kwolekr
parent 84c367bb46
commit 9e2a9b55e1
15 changed files with 125 additions and 141 deletions

View file

@ -30,13 +30,13 @@
#include <string>
#include <vector>
typedef struct {
struct key_setting {
int id;
wchar_t *button_name;
const wchar_t *button_name;
KeyPress key;
std::string setting_name;
gui::IGUIButton *button;
} key_setting;
};
class GUIKeyChangeMenu: public GUIModalMenu
@ -64,7 +64,7 @@ private:
bool resetMenu();
void add_key(int id, wchar_t* button_name, std::string setting_name);
void add_key(int id, const wchar_t *button_name, const std::string &setting_name);
bool shift_down;