mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user