summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-04-17 06:10:30 +0200
committerest31 <MTest31@outlook.com>2015-04-17 06:10:30 +0200
commitf0a1379e5a9ebc954e95d07c1ad5d71587adc6bc (patch)
tree38114d9be2e6bf1a0740035c41d5925c23f5036f /src/client.cpp
parent821d0025da3d7dec662e75c6ce2ea32e86aec508 (diff)
downloadminetest-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.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 99ef3c7e1..ceea56ba0 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1062,8 +1062,8 @@ void Client::sendChatMessage(const std::wstring &message)
Send(&pkt);
}
-void Client::sendChangePassword(const std::wstring &oldpassword,
- const std::wstring &newpassword)
+void Client::sendChangePassword(const std::string &oldpassword,
+ const std::string &newpassword)
{
Player *player = m_env.getLocalPlayer();
if(player == NULL)