Core/Misc: Fix static analysis issues

This commit is contained in:
jackpoz
2017-07-15 16:41:59 +02:00
parent 7d3291e804
commit 41f4a80f30
2 changed files with 2 additions and 2 deletions

View File

@@ -239,7 +239,7 @@ inline void LoadDBC(uint32& availableDbcLocales, StoreProblemList& errors, DBCSt
localizedName.push_back('/');
localizedName.append(filename);
if (!storage.LoadStringsFrom(localizedName.c_str()))
if (!storage.LoadStringsFrom(localizedName))
availableDbcLocales &= ~(1 << i); // mark as not available for speedup next checks
}

View File

@@ -936,7 +936,7 @@ DumpReturn PlayerDumpReader::LoadDump(std::string const& file, uint32 account, s
if (!ChangeColumn(ts, line, "at_login", "1"))
return DUMP_FILE_BROKEN;
}
else if (!ChangeColumn(ts, line, "name", name.c_str())) // characters.name
else if (!ChangeColumn(ts, line, "name", name)) // characters.name
return DUMP_FILE_BROKEN;
break;
}