diff options
author | Selat <LongExampleTestName@gmail.com> | 2014-02-27 23:12:59 +0300 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-03-12 17:34:48 -0400 |
commit | 7cac34c807b6f38eaca3bc8296566493c8874e03 (patch) | |
tree | 0403e9aae7fc96343c3ecba138ba9d06421c506e /src/client.cpp | |
parent | 2bc2ce3bd159cc7aa7054059ad413e93d05d0211 (diff) | |
download | minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.tar.gz minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.tar.bz2 minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.zip |
Pass arguments by reference
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp index 4d6c0cb99..654052ac0 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -2072,8 +2072,8 @@ void Client::sendChatMessage(const std::wstring &message) Send(0, data, true); } -void Client::sendChangePassword(const std::wstring oldpassword, - const std::wstring newpassword) +void Client::sendChangePassword(const std::wstring &oldpassword, + const std::wstring &newpassword) { Player *player = m_env.getLocalPlayer(); if(player == NULL) |