summaryrefslogtreecommitdiffstats
path: root/document/src/tests/fieldpathupdatetestcase.cpp
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahoo-inc.com>2017-04-10 15:57:12 +0200
committerArne H Juul <arnej@yahoo-inc.com>2017-04-10 15:57:12 +0200
commitff25d69b1164bcc39a218e24545f8974c87b3501 (patch)
treebba962ec896caaee0f5e70aba43191e417809d77 /document/src/tests/fieldpathupdatetestcase.cpp
parent7408511082d6f1faf777a9039004fe8002a67acb (diff)
add override in document module
Diffstat (limited to 'document/src/tests/fieldpathupdatetestcase.cpp')
-rw-r--r--document/src/tests/fieldpathupdatetestcase.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/document/src/tests/fieldpathupdatetestcase.cpp b/document/src/tests/fieldpathupdatetestcase.cpp
index 991c1d6b908..4a23f828921 100644
--- a/document/src/tests/fieldpathupdatetestcase.cpp
+++ b/document/src/tests/fieldpathupdatetestcase.cpp
@@ -25,8 +25,8 @@ struct FieldPathUpdateTestCase : public CppUnit::TestFixture {
DocumentTypeRepo::SP _repo;
DocumentType _foobar_type;
- void setUp();
- void tearDown();
+ void setUp() override;
+ void tearDown() override;
void testWhereClause();
void testNoIterateMapValues();
@@ -264,7 +264,7 @@ struct TestFieldPathUpdate : FieldPathUpdate
TestIteratorHandler(std::string& str)
: _str(str) {}
- ModificationStatus doModify(FieldValue& value)
+ ModificationStatus doModify(FieldValue& value) override
{
std::ostringstream ss;
value.print(ss, false, "");
@@ -275,7 +275,7 @@ struct TestFieldPathUpdate : FieldPathUpdate
return NOT_MODIFIED;
}
- bool onComplex(const Content&) { return false; }
+ bool onComplex(const Content&) override { return false; }
std::string& _str;
};
@@ -288,15 +288,15 @@ struct TestFieldPathUpdate : FieldPathUpdate
TestFieldPathUpdate(const TestFieldPathUpdate& other);
- std::unique_ptr<FieldValue::IteratorHandler> getIteratorHandler(Document&) const
+ std::unique_ptr<FieldValue::IteratorHandler> getIteratorHandler(Document&) const override
{
return std::unique_ptr<FieldValue::IteratorHandler>(
new TestIteratorHandler(_str));
}
- TestFieldPathUpdate* clone() const { return new TestFieldPathUpdate(*this); }
+ TestFieldPathUpdate* clone() const override { return new TestFieldPathUpdate(*this); }
- void print(std::ostream& out, bool, const std::string&) const
+ void print(std::ostream& out, bool, const std::string&) const override
{
out << "TestFieldPathUpdate()";
}