summaryrefslogtreecommitdiffstats
path: root/staging_vespalib/src/tests/objectdump/objectdump.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'staging_vespalib/src/tests/objectdump/objectdump.cpp')
-rw-r--r--staging_vespalib/src/tests/objectdump/objectdump.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/staging_vespalib/src/tests/objectdump/objectdump.cpp b/staging_vespalib/src/tests/objectdump/objectdump.cpp
index 3bdbe2401e4..671e89b5011 100644
--- a/staging_vespalib/src/tests/objectdump/objectdump.cpp
+++ b/staging_vespalib/src/tests/objectdump/objectdump.cpp
@@ -1,5 +1,5 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-
+#include <vespa/fastos/fastos.h>
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/vespalib/objects/identifiable.h>
#include <vespa/vespalib/objects/visit.hpp>
@@ -22,7 +22,7 @@ IMPLEMENT_IDENTIFIABLE(Base, vespalib::Identifiable);
struct Baz : public Base
{
DECLARE_IDENTIFIABLE(Baz);
- Baz *clone() const override { return new Baz(*this); }
+ virtual Baz *clone() const override { return new Baz(*this); }
};
IMPLEMENT_IDENTIFIABLE(Baz, Base);
@@ -45,9 +45,9 @@ struct Bar : public Base
_int32(-4), _uint32(4), _int64(-8), _uint64(8),
_float(2.5), _double(2.75), _string("bla bla") {}
- Bar *clone() const override { return new Bar(*this); }
+ virtual Bar *clone() const override { return new Bar(*this); }
- void visitMembers(ObjectVisitor &v) const override {
+ virtual void visitMembers(ObjectVisitor &v) const override {
visit(v, "_bool", _bool);
visit(v, "_int8", _int8);
visit(v, "_uint8", _uint8);