Skip to content

Commit cc6d138

Browse files
committed
fixed gcc warning about missing braces
1 parent 687c3a4 commit cc6d138

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/checkstl.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,8 +871,8 @@ void CheckStl::if_find()
871871

872872
else if (decl && decl->str() == "string") {
873873
decl = decl->next();
874-
if (Token::Match(decl, "* &| %varid%", varid) ||
875-
Token::Match(decl, "&| %varid% [ ]| %any% ]| ", varid) && performance)
874+
if ((Token::Match(decl, "* &| %varid%", varid) ||
875+
Token::Match(decl, "&| %varid% [ ]| %any% ]| ", varid)) && performance)
876876
if_findError(tok, true);
877877
}
878878
}

0 commit comments

Comments
 (0)