Apply some Clang-Tidy fixes

This commit is contained in:
gamerforEA 2020-02-27 00:13:54 +04:00 committed by Ivan
parent c0fbf3091e
commit 93552a5958
34 changed files with 59 additions and 59 deletions

View file

@ -440,7 +440,7 @@ void spu_cache::initialize()
compiler->init();
}
if (compilers.size() && !func_list.empty())
if (!compilers.empty() && !func_list.empty())
{
// Initialize progress dialog (wait for previous progress done)
while (g_progr_ptotal)
@ -518,7 +518,7 @@ void spu_cache::initialize()
return;
}
if (compilers.size() && !func_list.empty())
if (!compilers.empty() && !func_list.empty())
{
spu_log.success("SPU Runtime: Built %u functions.", func_list.size());
}
@ -4491,7 +4491,7 @@ public:
bool need_check = false;
m_block->bb = &bb;
if (bb.preds.size())
if (!bb.preds.empty())
{
// Initialize registers and build PHI nodes if necessary
for (u32 i = 0; i < s_reg_max; i++)