Skip to content

Commit c69bca8

Browse files
committed
ci fixes
1 parent 62b1610 commit c69bca8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/errorlogger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class CPPCHECKLIB ErrorLogger {
326326
protected:
327327
virtual std::size_t getSourceCacheSize() const {
328328
return 4;
329-
};
329+
}
330330

331331
class SourceCacheEntry {
332332
public:

test/testerrorlogger.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -935,10 +935,10 @@ class TestErrorLogger : public TestFixture {
935935
ASSERT_EQUALS(content.size(), copy.size());
936936

937937
std::make_heap(copy.begin(), copy.end(), heapCompare);
938-
for (const auto match : content) {
938+
for (const auto &match : content) {
939939
std::pop_heap(copy.begin(), copy.end(), heapCompare);
940-
ASSERT_EQUALS(match.file, copy.back()->file);
941-
ASSERT_EQUALS(match.prio, copy.back()->prio);
940+
ASSERT_EQUALS_LOC(match.file, copy.back()->file, testfile, testline);
941+
ASSERT_EQUALS_LOC(match.prio, copy.back()->prio, testfile, testline);
942942
copy.pop_back();
943943
}
944944
}

0 commit comments

Comments
 (0)