mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 08:26:36 +00:00
[Cleanup] Use constant reference and check for empty string properly in dbcore.cpp (#3203)
# Notes - Passing by constant reference is more performant. - Checking for empty string with `!= '\0'` is more performant. - https://pvs-studio.com/en/docs/warnings/v805/ - https://pvs-studio.com/en/docs/warnings/v813/
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ public:
|
||||
const std::string &GetOriginHost() const;
|
||||
void SetOriginHost(const std::string &origin_host);
|
||||
|
||||
bool DoesTableExist(std::string table_name);
|
||||
bool DoesTableExist(const std::string& table_name);
|
||||
|
||||
void SetMySQL(const DBcore &o)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user