From 7cac34c807b6f38eaca3bc8296566493c8874e03 Mon Sep 17 00:00:00 2001 From: Selat Date: Thu, 27 Feb 2014 23:12:59 +0300 Subject: Pass arguments by reference --- src/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client.cpp') 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) -- cgit v1.2.3