diff --git a/lib/token.cpp b/lib/token.cpp index 82e4746ee..f43d03c52 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -710,13 +710,13 @@ const Token* Token::nextArgument() const { for (const Token* tok = this; tok; tok = tok->next()) { if (tok->str() == ",") - return(tok->next()); + return tok->next(); else if (tok->str() == "(" || tok->str() == "{" || tok->str() == "[") tok = tok->link(); - else if (tok->str() == ")") - return(0); + else if (tok->str() == ")" || tok->str() == ";") + return 0; } - return(0); + return 0; } //---------------------------------------------------------------------------