mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-27 03:15:29 +01:00
Refactor around translatePassword
Change types for passed password from wstring to string, which removes converting back and forth in most cases. Move the narrow_to_wide conversion, where its neccessary, closer to irrlicht. Remove trailing spaces in guiPasswordChange.cpp. Make parameters for translatePassword passed as const reference.
This commit is contained in:
@@ -392,7 +392,7 @@ bool ClientLauncher::launch_game(std::string &error_message,
|
||||
else
|
||||
playername = menudata.name;
|
||||
|
||||
password = translatePassword(playername, narrow_to_wide(menudata.password));
|
||||
password = translatePassword(playername, menudata.password);
|
||||
|
||||
g_settings->set("name", playername);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user