summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/printable
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-04-03 20:22:16 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-04-04 16:36:18 +0200
commit5a48a81c4134bae524aa66e1e49624f678c8b6ce (patch)
tree04cf54e814d86a98cd5407510981edb28736dcc3 /vespalib/src/tests/printable
parentd57ddaefd37e6a19d3a6937fbf9a655dbafcdba5 (diff)
Add override in vespalib module
Diffstat (limited to 'vespalib/src/tests/printable')
-rw-r--r--vespalib/src/tests/printable/printabletest.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/vespalib/src/tests/printable/printabletest.cpp b/vespalib/src/tests/printable/printabletest.cpp
index 54b245ffff0..4138a875d60 100644
--- a/vespalib/src/tests/printable/printabletest.cpp
+++ b/vespalib/src/tests/printable/printabletest.cpp
@@ -10,8 +10,8 @@ struct Foo : public vespalib::Printable {
Foo(int v, std::string o) : val(v), other(o) {}
- virtual void print(std::ostream& out, bool verbose = false,
- const std::string& indent = "") const
+ void print(std::ostream& out, bool verbose = false,
+ const std::string& indent = "") const override
{
out << "Foo(val = " << val;
if (verbose) {
@@ -28,8 +28,8 @@ struct Bar : public Foo {
Bar(int j, int v, std::string o) : Foo(v, o), i(j) {}
- virtual void print(std::ostream& out, bool verbose = false,
- const std::string& indent = "") const
+ void print(std::ostream& out, bool verbose = false,
+ const std::string& indent = "") const override
{
out << "Bar(" << i << ")";
if (verbose) {
@@ -44,8 +44,8 @@ struct AsciiFoo : public vespalib::AsciiPrintable {
AsciiFoo(int v) : val(v) {}
- virtual void print(vespalib::asciistream& out,
- const PrintProperties& p) const
+ void print(vespalib::asciistream& out,
+ const PrintProperties& p) const override
{
if (p.verbose()) {
out << "AsciiFoo(" << val << ")";
@@ -60,8 +60,8 @@ struct AsciiBar : public vespalib::AsciiPrintable {
AsciiBar(int v) : _foo(v) {}
- virtual void print(vespalib::asciistream& out,
- const PrintProperties& p) const
+ void print(vespalib::asciistream& out,
+ const PrintProperties& p) const override
{
if (p.verbose()) {
out << "AsciiBar() {"
@@ -79,7 +79,7 @@ class Test : public vespalib::TestApp
public:
void testSimple();
void testAsciiVariant();
- int Main();
+ int Main() override;
};
void