mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-03 18:12:58 -04:00
newer standards prefer nullptr over NULL - this is most of them but there are others too
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user