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.h | |
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.h')
-rw-r--r-- | src/client.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.h b/src/client.h index 7ec405fa6..47b3c2e00 100644 --- a/src/client.h +++ b/src/client.h @@ -407,8 +407,8 @@ public: const std::map<std::string, std::string> &fields); void sendInventoryAction(InventoryAction *a); void sendChatMessage(const std::wstring &message); - void sendChangePassword(const std::wstring &oldpassword, - const std::wstring &newpassword); + void sendChangePassword(const std::string &oldpassword, + const std::string &newpassword); void sendDamage(u8 damage); void sendBreath(u16 breath); void sendRespawn(); |