1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02: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

@@ -1684,7 +1684,7 @@ bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args)
while (device->run() && !*kill && !g_gamecallback->shutdown_requested)
{
// Set the window caption
wchar_t *text = wgettext("Main Menu");
const wchar_t *text = wgettext("Main Menu");
device->setWindowCaption((std::wstring(L"Minetest [") + text + L"]").c_str());
delete[] text;