clang-modernize -use-nullptr

and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
This commit is contained in:
Tillmann Karras
2014-03-09 21:14:26 +01:00
parent f28116b7da
commit d802d39281
292 changed files with 1526 additions and 1526 deletions

View File

@ -40,7 +40,7 @@ GekkoOPInfo *GetOpInfo(UGeckoInstruction _inst)
case 63: return m_infoTable63[_inst.SUBOP10];
default:
_assert_msg_(POWERPC,0,"GetOpInfo - invalid subtable op %08x @ %08x", _inst.hex, PC);
return 0;
return nullptr;
}
}
else
@ -48,7 +48,7 @@ GekkoOPInfo *GetOpInfo(UGeckoInstruction _inst)
if ((info->type & 0xFFFFFF) == OPTYPE_INVALID)
{
_assert_msg_(POWERPC,0,"GetOpInfo - invalid op %08x @ %08x", _inst.hex, PC);
return 0;
return nullptr;
}
return m_infoTable[_inst.OPCD];
}
@ -69,7 +69,7 @@ Interpreter::_interpreterInstruction GetInterpreterOp(UGeckoInstruction _inst)
case 63: return Interpreter::m_opTable63[_inst.SUBOP10];
default:
_assert_msg_(POWERPC,0,"GetInterpreterOp - invalid subtable op %08x @ %08x", _inst.hex, PC);
return 0;
return nullptr;
}
}
else
@ -77,7 +77,7 @@ Interpreter::_interpreterInstruction GetInterpreterOp(UGeckoInstruction _inst)
if ((info->type & 0xFFFFFF) == OPTYPE_INVALID)
{
_assert_msg_(POWERPC,0,"GetInterpreterOp - invalid op %08x @ %08x", _inst.hex, PC);
return 0;
return nullptr;
}
return Interpreter::m_opTable[_inst.OPCD];
}
@ -161,13 +161,13 @@ namespace {
const char *GetInstructionName(UGeckoInstruction _inst)
{
const GekkoOPInfo *info = GetOpInfo(_inst);
return info ? info->opname : 0;
return info ? info->opname : nullptr;
}
bool IsValidInstruction(UGeckoInstruction _inst)
{
const GekkoOPInfo *info = GetOpInfo(_inst);
return info != 0;
return info != nullptr;
}
void CountInstruction(UGeckoInstruction _inst)