mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 12:31:31 +00:00
Changed args to const string
This commit is contained in:
parent
d8da52796b
commit
8d729d4ea0
@ -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 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.
|
* Retrieves the world registration from the long and short names provided.
|
||||||
|
|||||||
@ -144,7 +144,7 @@ bool DatabaseMySQL::GetLoginTokenDataFromToken(const std::string &token, const s
|
|||||||
return found_username && found_login_id;
|
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) {
|
if (!database) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@ -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 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.
|
* Retrieves the world registration from the long and short names provided.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user