refactor(Core/Misc): Use .empty() instead of == "" (#7870)
This commit is contained in:
parent
6df7303b24
commit
339d58ecdc
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ public:
|
|||
std::string type;
|
||||
parsedStream >> type;
|
||||
|
||||
if (type == "")
|
||||
if (type.empty())
|
||||
break;
|
||||
|
||||
if (type == "uint8")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue