summaryrefslogtreecommitdiffstats
path: root/staging_vespalib/src/tests/objectselection
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahoo-inc.com>2017-04-10 15:57:20 +0200
committerArne H Juul <arnej@yahoo-inc.com>2017-04-10 15:57:20 +0200
commit39e3a4b3aeb38fc27772d074760515ed322659b9 (patch)
tree7beb4222e5de84932ad3be5bf857b2db544b3067 /staging_vespalib/src/tests/objectselection
parentc4b08d23a8a2056aa0c1b8b39e8fd2dd3ee49a93 (diff)
add override in staging_vespalib module
Diffstat (limited to 'staging_vespalib/src/tests/objectselection')
-rw-r--r--staging_vespalib/src/tests/objectselection/objectselection.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/staging_vespalib/src/tests/objectselection/objectselection.cpp b/staging_vespalib/src/tests/objectselection/objectselection.cpp
index 5b51ea5ae59..27ecb068231 100644
--- a/staging_vespalib/src/tests/objectselection/objectselection.cpp
+++ b/staging_vespalib/src/tests/objectselection/objectselection.cpp
@@ -17,7 +17,7 @@ struct Foo : public Identifiable
DECLARE_IDENTIFIABLE(Foo);
virtual Foo *clone() const { return new Foo(*this); }
- virtual void selectMembers(const ObjectPredicate &p, ObjectOperation &o) {
+ virtual void selectMembers(const ObjectPredicate &p, ObjectOperation &o) override {
for (uint32_t i = 0; i < nodes.size(); ++i) {
nodes[i]->select(p, o);
}
@@ -32,7 +32,7 @@ struct Bar : public Foo
DECLARE_IDENTIFIABLE(Bar);
Bar() : value(0) {}
Bar(int v) { value = v; }
- virtual Bar *clone() const { return new Bar(*this); }
+ virtual Bar *clone() const override { return new Bar(*this); }
};
IMPLEMENT_IDENTIFIABLE(Bar, Identifiable);
@@ -40,7 +40,7 @@ struct ObjectType : public ObjectPredicate
{
uint32_t cid;
ObjectType(uint32_t id) : cid(id) {}
- virtual bool check(const Identifiable &obj) const {
+ virtual bool check(const Identifiable &obj) const override {
return (obj.getClass().id() == cid);
}
};
@@ -48,7 +48,7 @@ struct ObjectType : public ObjectPredicate
struct ObjectCollect : public ObjectOperation
{
std::vector<Identifiable*> nodes;
- virtual void execute(Identifiable &obj) {
+ virtual void execute(Identifiable &obj) override {
nodes.push_back(&obj);
}
};