Refactoring: Simplified a condition
This commit is contained in:
parent
36e54b739b
commit
4d0cd99e97
@ -352,7 +352,7 @@ void CheckClass::constructors()
|
|||||||
isPrivate = false;
|
isPrivate = false;
|
||||||
|
|
||||||
// Is there a private constructor?
|
// 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;
|
hasPrivateConstructor = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user