diff --git a/lib/checkstl.cpp b/lib/checkstl.cpp index ab2834471..0528e2a59 100644 --- a/lib/checkstl.cpp +++ b/lib/checkstl.cpp @@ -871,8 +871,8 @@ void CheckStl::if_find() else if (decl && decl->str() == "string") { decl = decl->next(); - if (Token::Match(decl, "* &| %varid%", varid) || - Token::Match(decl, "&| %varid% [ ]| %any% ]| ", varid) && performance) + if ((Token::Match(decl, "* &| %varid%", varid) || + Token::Match(decl, "&| %varid% [ ]| %any% ]| ", varid)) && performance) if_findError(tok, true); } }