Skip to content

Commit 3693c19

Browse files
committed
Rename local variable to avoid conflict with function name [shadowFunction].
1 parent 1e97436 commit 3693c19

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/suppressions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,13 +459,13 @@ bool SuppressionList::Suppression::isFileNameMatch(const std::string &errorFileN
459459
if (it != mFileNameMatchCache.end())
460460
return it->second;
461461

462-
const bool isMatch = PathMatch::match(fileName, errorFileName);
462+
const bool result = PathMatch::match(fileName, errorFileName);
463463

464464
if (mFileNameMatchCache.size() >= mFileNameMatchCacheMaxEntries)
465465
mFileNameMatchCache.clear();
466466

467-
mFileNameMatchCache.emplace(errorFileName, isMatch);
468-
return isMatch;
467+
mFileNameMatchCache.emplace(errorFileName, result);
468+
return result;
469469
}
470470

471471
bool SuppressionList::Suppression::isMatch(const SuppressionList::ErrorMessage &errmsg)

0 commit comments

Comments
 (0)