Use empty instead of size

This commit is contained in:
Filip Gawin
2019-02-12 23:47:17 +01:00
parent 363ce67459
commit 49fe9f5db1
28 changed files with 56 additions and 56 deletions

View File

@ -243,7 +243,7 @@ u32 UnPatch(const std::string& patch_name)
}
const auto& symbols = g_symbolDB.GetSymbolsFromName(patch_name);
if (symbols.size())
if (!symbols.empty())
{
const auto& symbol = symbols[0];
for (u32 addr = symbol->address; addr < symbol->address + symbol->size; addr += 4)