diff options
author | est31 <MTest31@outlook.com> | 2015-04-17 06:10:30 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-04-17 06:10:30 +0200 |
commit | f0a1379e5a9ebc954e95d07c1ad5d71587adc6bc (patch) | |
tree | 38114d9be2e6bf1a0740035c41d5925c23f5036f /src/client | |
parent | 821d0025da3d7dec662e75c6ce2ea32e86aec508 (diff) | |
download | minetest-f0a1379e5a9ebc954e95d07c1ad5d71587adc6bc.tar.gz minetest-f0a1379e5a9ebc954e95d07c1ad5d71587adc6bc.tar.bz2 minetest-f0a1379e5a9ebc954e95d07c1ad5d71587adc6bc.zip |
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.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/clientlauncher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/clientlauncher.cpp b/src/client/clientlauncher.cpp index fe4dec40f..5307ccd4b 100644 --- a/src/client/clientlauncher.cpp +++ b/src/client/clientlauncher.cpp @@ -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); |