Skip to content

Commit

Permalink
Add const qualifier
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Cripps <kyle@pensando.io>
  • Loading branch information
kfcripps committed Sep 4, 2024
1 parent dbd20a5 commit 306ec60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/error_reporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ErrorReporter {
/// and source info.
/// If the error has been reported, return true. Otherwise, insert add the error to the
/// list of seen errors, and return false.
bool error_reported(int err, Util::SourceInfo source) {
bool error_reported(int err, const Util::SourceInfo source) {
if (!source.isValid()) return false;
auto p = errorTracker.emplace(err, source);
return !p.second; // if insertion took place, then we have not seen the error.
Expand Down

0 comments on commit 306ec60

Please sign in to comment.