mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-31 01:15:48 -04:00
newer standards prefer nullptr over NULL - this is most of them but there are others too
This commit is contained in:
@@ -135,7 +135,7 @@ int CCmdLine::SplitLine(int argc, char **argv)
|
||||
|
||||
bool CCmdLine::IsSwitch(const char *pParam)
|
||||
{
|
||||
if (pParam==NULL)
|
||||
if (pParam==nullptr)
|
||||
return false;
|
||||
|
||||
// switches must non-empty
|
||||
@@ -204,7 +204,7 @@ StringType CCmdLine::GetSafeArgument(const char *pSwitch, int iIdx, const char *
|
||||
{
|
||||
StringType sRet;
|
||||
|
||||
if (pDefault!=NULL)
|
||||
if (pDefault!=nullptr)
|
||||
sRet = pDefault;
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user