From 7b6ddc50aedc9b309bf6bc5dcda8fceebc1594bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 10 May 2018 17:57:16 +0200 Subject: [PATCH] astyle formatting [ci skip] --- lib/checknullpointer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/checknullpointer.cpp b/lib/checknullpointer.cpp index 11ee461cb..f75c86c82 100644 --- a/lib/checknullpointer.cpp +++ b/lib/checknullpointer.cpp @@ -532,12 +532,10 @@ void CheckNullPointer::arithmetic() if (tok->astOperand1() && tok->astOperand1()->valueType() && tok->astOperand1()->valueType()->pointer != 0) { pointerOperand = tok->astOperand1(); 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(); numericOperand = tok->astOperand1(); - } - else + } else continue; if (numericOperand && numericOperand->valueType() && !numericOperand->valueType()->isIntegral()) continue;