loplugin:nullptr (automatic rewrite)
Change-Id: I3ae78d781e686bfe9b0513183da7fc8edd81024b
This commit is contained in:
@@ -376,7 +376,7 @@ void
|
||||
}
|
||||
else
|
||||
{ /* tp is == lp, therefore does not point to valid memory: */
|
||||
mvl_add(pValidators,np,0);
|
||||
mvl_add(pValidators,np,NULL);
|
||||
}
|
||||
/* reset trp->tp to original position:
|
||||
*/
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
void
|
||||
mvl_init(MacroValidatorList * out_pValidators)
|
||||
{
|
||||
out_pValidators->pFirst = 0;
|
||||
out_pValidators->pFirst = NULL;
|
||||
out_pValidators->nextFreeIdentifier = 1;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ mvl_destruct(MacroValidatorList * out_pValidators)
|
||||
MacroValidator * pV = out_pValidators->pFirst;
|
||||
MacroValidator * pDel;
|
||||
for ( pDel = out_pValidators->pFirst;
|
||||
pDel != 0;
|
||||
pDel != NULL;
|
||||
pDel = pV )
|
||||
{
|
||||
pV = pV->pNext;
|
||||
@@ -62,7 +62,7 @@ mvl_add( MacroValidatorList * inout_pValidators,
|
||||
MacroValidator * pNew = new(MacroValidator);
|
||||
pNew->pMacro = in_pMacro;
|
||||
|
||||
if (in_pTokenWhereMacroBecomesValid == 0)
|
||||
if (in_pTokenWhereMacroBecomesValid == NULL)
|
||||
{
|
||||
pNew->nTokenWhereMacroBecomesValid = INVALID_TILL_ENDOFROW;
|
||||
}
|
||||
@@ -87,10 +87,10 @@ mvl_check( MacroValidatorList * inout_pValidators,
|
||||
{
|
||||
MacroValidator * pV; /* Running pointer */
|
||||
MacroValidator * pCheckedOnes; /* Here new list is built. */
|
||||
pCheckedOnes = 0;
|
||||
pCheckedOnes = NULL;
|
||||
|
||||
for ( pV = inout_pValidators->pFirst;
|
||||
pV != 0;
|
||||
pV != NULL;
|
||||
pV = inout_pValidators->pFirst )
|
||||
{
|
||||
inout_pValidators->pFirst = pV->pNext;
|
||||
|
||||
@@ -94,7 +94,7 @@ void
|
||||
kwdefined = np;
|
||||
np->val = NAME;
|
||||
np->vp = &deftr;
|
||||
np->ap = 0;
|
||||
np->ap = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ _lookup_variable (const char *var, size_t len)
|
||||
char tmpbuf[MAXNAMELEN + 1];
|
||||
|
||||
if (len > MAXNAMELEN)
|
||||
return 0;
|
||||
return NULL;
|
||||
|
||||
strncpy (tmpbuf, var, len);
|
||||
tmpbuf[len] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user