Skip to content

Commit 4b1135d

Browse files
fixup! fixup! Fix #8260 Improve check: Pointer calculation result not null
1 parent a455bb2 commit 4b1135d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/checkcondition.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,15 +1782,15 @@ void CheckCondition::checkPointerAdditionResultNotNull()
17821782
if (tok->isExpandedMacro())
17831783
continue;
17841784

1785-
const Token *calcToken = NULL, *exprToken = NULL;
1785+
const Token *calcToken = nullptr, *exprToken = nullptr;
17861786
if (tok->astOperand1()->str() == "+") {
17871787
calcToken = tok->astOperand1();
17881788
exprToken = tok->astOperand2();
17891789
} else if (tok->astOperand2()->str() == "+") {
17901790
calcToken = tok->astOperand2();
17911791
exprToken = tok->astOperand1();
17921792
} else {
1793-
const Token *pointerToken = NULL;
1793+
const Token *pointerToken = nullptr;
17941794
if (tok->astOperand1()->variable() && tok->astOperand1()->variable()->isPointer())
17951795
pointerToken = tok->astOperand1();
17961796
else if (tok->astOperand2()->variable() && tok->astOperand2()->variable()->isPointer())

0 commit comments

Comments
 (0)