refactor(Core/Misc): Use .empty() instead of == "" (#7870)
This commit is contained in:
@@ -539,7 +539,7 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s
|
|||||||
playerClass = uint8(atol(getnth(line, 5).c_str()));
|
playerClass = uint8(atol(getnth(line, 5).c_str()));
|
||||||
gender = uint8(atol(getnth(line, 6).c_str()));
|
gender = uint8(atol(getnth(line, 6).c_str()));
|
||||||
level = uint8(atol(getnth(line, 7).c_str()));
|
level = uint8(atol(getnth(line, 7).c_str()));
|
||||||
if (name == "")
|
if (name.empty())
|
||||||
{
|
{
|
||||||
// check if the original name already exists
|
// check if the original name already exists
|
||||||
name = getnth(line, 3);
|
name = getnth(line, 3);
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ public:
|
|||||||
std::string type;
|
std::string type;
|
||||||
parsedStream >> type;
|
parsedStream >> type;
|
||||||
|
|
||||||
if (type == "")
|
if (type.empty())
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (type == "uint8")
|
if (type == "uint8")
|
||||||
|
|||||||
Reference in New Issue
Block a user