mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-21 14:15:34 +01:00
Pass arguments by reference
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user