Refactoring: Simplified a condition
This commit is contained in:
parent
36e54b739b
commit
4d0cd99e97
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue