fix warnings

This commit is contained in:
Günter Obiltschnig
2020-01-04 09:58:23 +01:00
parent 24c7d4ab97
commit b9cc21867b
2 changed files with 5 additions and 5 deletions

View File

@@ -33,11 +33,11 @@ public:
virtual ~TestDecorator(); virtual ~TestDecorator();
int countTestCases(); int countTestCases() const;
void run(TestResult* result); void run(TestResult* result);
std::string toString(); std::string toString() const;
protected: protected:
Test* _test; Test* _test;

View File

@@ -20,7 +20,7 @@ TestDecorator::~TestDecorator()
} }
int TestDecorator::countTestCases() int TestDecorator::countTestCases() const
{ {
return _test->countTestCases(); return _test->countTestCases();
} }
@@ -29,10 +29,10 @@ int TestDecorator::countTestCases()
void TestDecorator::run(TestResult* result) void TestDecorator::run(TestResult* result)
{ {
_test->run(result); _test->run(result);
} }
std::string TestDecorator::toString() std::string TestDecorator::toString() const
{ {
return _test->toString(); return _test->toString();
} }