diff options
author | ShadowNinja <shadowninja@minetest.net> | 2015-02-01 17:59:23 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-02-05 03:24:22 -0500 |
commit | 9e2a9b55e185b92074b32d3df336920f33b29e5a (patch) | |
tree | 0ec7b908b01ef62db67a27cfcfba413a3adf6748 /src/guiVolumeChange.cpp | |
parent | 84c367bb468441efe428478d3918f07a9b6c2d72 (diff) | |
download | minetest-9e2a9b55e185b92074b32d3df336920f33b29e5a.tar.gz minetest-9e2a9b55e185b92074b32d3df336920f33b29e5a.tar.bz2 minetest-9e2a9b55e185b92074b32d3df336920f33b29e5a.zip |
Reduce gettext wide/narrow and string/char* conversions
Diffstat (limited to 'src/guiVolumeChange.cpp')
-rw-r--r-- | src/guiVolumeChange.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guiVolumeChange.cpp b/src/guiVolumeChange.cpp index f31c650f3..b31b99a98 100644 --- a/src/guiVolumeChange.cpp +++ b/src/guiVolumeChange.cpp @@ -103,7 +103,7 @@ void GUIVolumeChange::regenerateGui(v2u32 screensize) { core::rect<s32> rect(0, 0, 120, 20); rect = rect + v2s32(size.X/2-60, size.Y/2-35); - wchar_t* text = wgettext("Sound Volume: "); + const wchar_t *text = wgettext("Sound Volume: "); Environment->addStaticText(text, rect, false, true, this, ID_soundText1); delete[] text; @@ -117,7 +117,7 @@ void GUIVolumeChange::regenerateGui(v2u32 screensize) { core::rect<s32> rect(0, 0, 80, 30); rect = rect + v2s32(size.X/2-80/2, size.Y/2+55); - wchar_t* text = wgettext("Exit"); + const wchar_t *text = wgettext("Exit"); Environment->addButton(rect, this, ID_soundExitButton, text); delete[] text; |