astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2018-05-10 17:57:16 +02:00
parent 73a9f05a73
commit 7b6ddc50ae
1 changed files with 2 additions and 4 deletions

View File

@ -532,12 +532,10 @@ void CheckNullPointer::arithmetic()
if (tok->astOperand1() && tok->astOperand1()->valueType() && tok->astOperand1()->valueType()->pointer != 0) { if (tok->astOperand1() && tok->astOperand1()->valueType() && tok->astOperand1()->valueType()->pointer != 0) {
pointerOperand = tok->astOperand1(); pointerOperand = tok->astOperand1();
numericOperand = tok->astOperand2(); numericOperand = tok->astOperand2();
} } else if (tok->astOperand2() && tok->astOperand2()->valueType() && tok->astOperand2()->valueType()->pointer != 0) {
else if (tok->astOperand2() && tok->astOperand2()->valueType() && tok->astOperand2()->valueType()->pointer != 0) {
pointerOperand = tok->astOperand2(); pointerOperand = tok->astOperand2();
numericOperand = tok->astOperand1(); numericOperand = tok->astOperand1();
} } else
else
continue; continue;
if (numericOperand && numericOperand->valueType() && !numericOperand->valueType()->isIntegral()) if (numericOperand && numericOperand->valueType() && !numericOperand->valueType()->isIntegral())
continue; continue;