Skip to content

Commit 1c714a4

Browse files
committed
Changed all parameters to TestReporterStdout::ReportSummary to be const. This best preserved the intent of the original definition while supporting a non-conformant compiler that could not handle the mismatch.
1 parent 8faa479 commit 1c714a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/TestReporterStdout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void TestReporterStdout::ReportTestFinish(TestDetails const& /*test*/, float)
3131
}
3232

3333
void TestReporterStdout::ReportSummary(int const totalTestCount, int const failedTestCount,
34-
int const failureCount, float secondsElapsed)
34+
int const failureCount, float const secondsElapsed)
3535
{
3636
using namespace std;
3737

src/TestReporterStdout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class UNITTEST_LINKAGE TestReporterStdout : public TestReporter
1111
virtual void ReportTestStart(TestDetails const& test);
1212
virtual void ReportFailure(TestDetails const& test, char const* failure);
1313
virtual void ReportTestFinish(TestDetails const& test, float secondsElapsed);
14-
virtual void ReportSummary(int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed);
14+
virtual void ReportSummary(int const totalTestCount, int const failedTestCount, int const failureCount, float const secondsElapsed);
1515
};
1616

1717
}

0 commit comments

Comments
 (0)