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 committed 2014-03-09 21:14:26 +01:00
1 parent f28116b7da
commit d802d39281
292 files changed
+1526 -1526

No files matched your search

+4 -4
View File
@@ -45,7 +45,7 @@ namespace JitInterface
bFakeVMEM = SConfig::GetInstance().m_LocalCoreStartupParameter.bTLBHack == true;
bMMU = SConfig::GetInstance().m_LocalCoreStartupParameter.bMMU;
CPUCoreBase *ptr = NULL;
CPUCoreBase *ptr = nullptr;
switch(core)
{
#if _M_X86
@@ -75,8 +75,8 @@ namespace JitInterface
default:
{
PanicAlert("Unrecognizable cpu_core: %d", core);
jit = NULL;
return NULL;
jit = nullptr;
return nullptr;
}
}
jit = static_cast<JitBase*>(ptr);
@@ -239,7 +239,7 @@ namespace JitInterface
{
jit->Shutdown();
delete jit;
jit = NULL;
jit = nullptr;
}
}
}