Changed args to const string

This commit is contained in:
KimLS 2016-10-31 21:38:13 -07:00
parent d8da52796b
commit 8d729d4ea0
3 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ public:
virtual bool GetLoginTokenDataFromToken(const std::string &token, const std::string &ip, unsigned int &db_account_id, std::string &user) { return false; }
virtual bool CreateLoginData(std::string name, std::string &password, unsigned int &id) { return false; }
virtual bool CreateLoginData(const std::string &name, const std::string &password, unsigned int &id) { return false; }
/**
* Retrieves the world registration from the long and short names provided.

View File

@ -144,7 +144,7 @@ bool DatabaseMySQL::GetLoginTokenDataFromToken(const std::string &token, const s
return found_username && found_login_id;
}
bool DatabaseMySQL::CreateLoginData(std::string name, std::string &password, unsigned int &id)
bool DatabaseMySQL::CreateLoginData(const std::string &name, const std::string &password, unsigned int &id)
{
if (!database) {
return false;

View File

@ -61,7 +61,7 @@ public:
virtual bool GetLoginTokenDataFromToken(const std::string &token, const std::string &ip, unsigned int &db_account_id, std::string &user);
virtual bool CreateLoginData(std::string name, std::string &password, unsigned int &id);
virtual bool CreateLoginData(const std::string &name, const std::string &password, unsigned int &id);
/**
* Retrieves the world registration from the long and short names provided.