Refactoring: Simplified a condition

This commit is contained in:
Daniel Marjamäki 2009-01-05 07:21:05 +00:00
parent 36e54b739b
commit 4d0cd99e97
1 changed files with 1 additions and 1 deletions

View File

@ -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;