Skip to content

Commit 9513073

Browse files
Update tokenize.cpp
1 parent 2da4fb0 commit 9513073

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/tokenize.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,10 +1030,9 @@ bool Tokenizer::isFunctionPointer(const Token* tok) {
10301030

10311031
static bool matchCurrentType(const std::string& typeStr, const std::map<int, std::string>& types)
10321032
{
1033-
auto it = std::find_if(types.begin(), types.end(), [&](const std::pair<int, std::string>& element) {
1033+
return std::any_of(types.begin(), types.end(), [&](const std::pair<int, std::string>& element) {
10341034
return typeStr == element.second;
10351035
});
1036-
return it != types.end();
10371036
}
10381037

10391038
void Tokenizer::simplifyTypedef()

0 commit comments

Comments
 (0)