From 7320bbd8fd123b24b5f4fbb864eb5da18a6507d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 9 Apr 2011 18:44:07 +0200 Subject: [PATCH] Refactoring: Use %op% --- lib/checknullpointer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/checknullpointer.cpp b/lib/checknullpointer.cpp index 916fdfacc..193711ea7 100644 --- a/lib/checknullpointer.cpp +++ b/lib/checknullpointer.cpp @@ -766,8 +766,7 @@ void CheckNullPointer::nullConstantDereference() else if (Token::simpleMatch(tok, "* 0")) { - if (Token::Match(tok->previous(), "[<>;{}=+-*/(,]") || - Token::Match(tok->previous(), "return|<<")) + if (Token::Match(tok->previous(), "return|;|{|}|=|(|,|%op%")) { nullPointerError(tok); }