refactor(Core/Misc): Use .empty() instead of == "" (#7870)

This commit is contained in:
Kitzunu
2021-09-20 00:46:00 +02:00
committed by GitHub
parent 6df7303b24
commit 339d58ecdc
2 changed files with 2 additions and 2 deletions

View File

@@ -539,7 +539,7 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s
playerClass = uint8(atol(getnth(line, 5).c_str()));
gender = uint8(atol(getnth(line, 6).c_str()));
level = uint8(atol(getnth(line, 7).c_str()));
if (name == "")
if (name.empty())
{
// check if the original name already exists
name = getnth(line, 3);

View File

@@ -325,7 +325,7 @@ public:
std::string type;
parsedStream >> type;
if (type == "")
if (type.empty())
break;
if (type == "uint8")