From 4d781a7492ed41408a9c195f3cd6abcfba9e2236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 15 May 2013 16:51:15 +0200 Subject: [PATCH] made CheckAssert::inSameScope static to silence cppcheck warning --- lib/checkassert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkassert.h b/lib/checkassert.h index 691eaa59e..78062f1f0 100644 --- a/lib/checkassert.h +++ b/lib/checkassert.h @@ -50,7 +50,7 @@ public: protected: bool checkVariableAssignment(const Token* tmp, bool reportErr = true); - bool inSameScope(const Token* returnTok, const Token* assignTok); + static bool inSameScope(const Token* returnTok, const Token* assignTok); static const Token* findAssertPattern(const Token *start);