@@ -872,18 +872,18 @@ class TestErrorLogger : public TestFixture {
872872 public:
873873 friend class TestErrorLogger ;
874874
875- virtual void reportOut (const std::string &outmsg, Color c)
875+ virtual void reportOut (const std::string &outmsg, Color c) override
876876 {
877877 (void ) outmsg;
878878 (void ) c;
879879 }
880880
881- virtual void reportErr (const ErrorMessage &msg)
881+ virtual void reportErr (const ErrorMessage &msg) override
882882 {
883883 (void ) msg.toString (false , " {code}" , " {code}" , getSourceLineCallback ());
884884 }
885885
886- virtual void reportMetric (const std::string &metric)
886+ virtual void reportMetric (const std::string &metric) override
887887 {
888888 (void ) metric;
889889 }
@@ -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