From 4d0cd99e97d4a6251de363d4f7ff194b049a0c53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 5 Jan 2009 07:21:05 +0000 Subject: [PATCH] Refactoring: Simplified a condition --- checkclass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkclass.cpp b/checkclass.cpp index 5a3faba69..56de63c10 100644 --- a/checkclass.cpp +++ b/checkclass.cpp @@ -352,7 +352,7 @@ void CheckClass::constructors() isPrivate = false; // Is there a private constructor? - else if ( isPrivate && tok->next() && tok->str() == classNameToken->str() && tok->next()->str() == "(" ) + else if ( isPrivate && Token::simpleMatch(tok, classNameToken->str() + " (") ) { hasPrivateConstructor = true; break;