newer standards prefer nullptr over NULL - this is most of them but there are others too

This commit is contained in:
DarthArgus
2016-02-15 00:07:31 -06:00
parent 6bb5137dc4
commit 03dc62efba
937 changed files with 14983 additions and 14983 deletions
@@ -22,7 +22,7 @@ struct SetBufferMode
SetBufferMode::SetBufferMode()
{
setvbuf(stdin, NULL, _IONBF, 0);
setvbuf(stdin, nullptr, _IONBF, 0);
}
//-----------------------------------------------------------------------
@@ -92,7 +92,7 @@ void makeParameters(const std::vector<std::string> & parameters, std::vector<cha
strcpy(arg, (*i).c_str()); //lint !e64 !e534
p.push_back(arg);
}
p.push_back(NULL);
p.push_back(nullptr);
}
// ----------------------------------------------------------------------
@@ -29,7 +29,7 @@ int main(int argc, char ** argv)
SetupSharedCompression::install();
SetupSharedFile::install(false);
SetupSharedNetworkMessages::install();
SetupSharedRandom::install(static_cast<uint32>(time(NULL))); //lint !e1924 !e64 // NULL is a C-Style cast?
SetupSharedRandom::install(static_cast<uint32>(time(nullptr))); //lint !e1924 !e64 // nullptr is a C-Style cast?
Os::setProgramName("TaskManager");
//setup the server