aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-04-29 00:53:10 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-04-29 00:53:10 +0200
commit1ebf4beb3c6f0c1646a46983ef85964c5e165c3b (patch)
tree422dd054fa151c3c7eb16ca6cb45738c19ed02f5 /config
parent97aaf8fb695c5f010b789b85f68c5ec4982ed45f (diff)
Add override
Diffstat (limited to 'config')
-rw-r--r--config/src/apps/configproxy-cmd/main.cpp4
-rw-r--r--config/src/apps/getvespaconfig/getconfig.cpp2
-rw-r--r--config/src/apps/pingproxy/pingproxy.cpp2
-rw-r--r--config/src/tests/configagent/configagent.cpp78
-rw-r--r--config/src/tests/configretriever/configretriever.cpp4
-rw-r--r--config/src/tests/frt/frt.cpp4
-rw-r--r--config/src/tests/frtconnectionpool/frtconnectionpool.cpp4
-rw-r--r--config/src/tests/subscription/subscription.cpp1
-rw-r--r--config/src/tests/trace/trace.cpp4
-rw-r--r--config/src/vespa/config/helper/ifetchercallback.h5
10 files changed, 22 insertions, 86 deletions
diff --git a/config/src/apps/configproxy-cmd/main.cpp b/config/src/apps/configproxy-cmd/main.cpp
index fcf2a0ca5d7..1d5934f2817 100644
--- a/config/src/apps/configproxy-cmd/main.cpp
+++ b/config/src/apps/configproxy-cmd/main.cpp
@@ -10,8 +10,8 @@ class Application : public FastOS_Application
Flags _flags;
bool parseOpts();
public:
- void usage(void);
- int Main(void) override;
+ void usage();
+ int Main() override;
Application() : _flags() {}
};
diff --git a/config/src/apps/getvespaconfig/getconfig.cpp b/config/src/apps/getvespaconfig/getconfig.cpp
index 23127b79333..df7bbba48b0 100644
--- a/config/src/apps/getvespaconfig/getconfig.cpp
+++ b/config/src/apps/getvespaconfig/getconfig.cpp
@@ -32,7 +32,7 @@ public:
int usage();
void initRPC(const char *spec);
void finiRPC();
- virtual int Main() override;
+ int Main() override;
};
diff --git a/config/src/apps/pingproxy/pingproxy.cpp b/config/src/apps/pingproxy/pingproxy.cpp
index 667d5689691..ba35892c03c 100644
--- a/config/src/apps/pingproxy/pingproxy.cpp
+++ b/config/src/apps/pingproxy/pingproxy.cpp
@@ -24,7 +24,7 @@ public:
int usage();
void initRPC(const char *spec);
void finiRPC();
- virtual int Main() override;
+ int Main() override;
};
diff --git a/config/src/tests/configagent/configagent.cpp b/config/src/tests/configagent/configagent.cpp
index 91b657b42f2..0693c33467d 100644
--- a/config/src/tests/configagent/configagent.cpp
+++ b/config/src/tests/configagent/configagent.cpp
@@ -1,5 +1,4 @@
// 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/test_kit.h>
#include <vespa/config/config.h>
#include <vespa/config/raw/rawsource.h>
@@ -19,25 +18,10 @@ public:
: _key(key)
{ }
- const ConfigKey & getKey() const override
- {
- return _key;
- }
-
- bool abort() override
- {
- return false;
- }
-
- bool isAborted() const override
- {
- return false;
- }
-
- void setError(int errorCode) override
- {
- (void) errorCode;
- }
+ const ConfigKey & getKey() const override { return _key; }
+ bool abort() override { return false; }
+ bool isAborted() const override { return false; }
+ void setError(int errorCode) override { (void) errorCode; }
const ConfigKey _key;
};
@@ -57,51 +41,15 @@ public:
_isError(iserror)
{ }
- const ConfigKey& getKey() const override
- {
- return _key;
- }
-
- const ConfigValue & getValue() const override
- {
- return _value;
- }
-
- const ConfigState & getConfigState() const override
- {
- return _state;
- }
-
- bool hasValidResponse() const override
- {
- return _valid;
- }
-
- bool validateResponse() override
- {
- return _valid;
- }
-
- void fill() override
- {
- _fillCalled = true;
- }
-
- vespalib::string errorMessage() const override
- {
- return _errorMessage;
- }
-
- int errorCode() const override
- {
- return _errorCode;
- }
-
- bool isError() const override
- {
- return _isError;
- }
-
+ const ConfigKey& getKey() const override { return _key; }
+ const ConfigValue & getValue() const override { return _value; }
+ const ConfigState & getConfigState() const override { return _state; }
+ bool hasValidResponse() const override { return _valid; }
+ bool validateResponse() override { return _valid; }
+ void fill() override { _fillCalled = true; }
+ vespalib::string errorMessage() const override { return _errorMessage; }
+ int errorCode() const override { return _errorCode; }
+ bool isError() const override { return _isError; }
const Trace & getTrace() const override { return _trace; }
const ConfigKey _key;
diff --git a/config/src/tests/configretriever/configretriever.cpp b/config/src/tests/configretriever/configretriever.cpp
index bb4dda0e10e..8273eee2c73 100644
--- a/config/src/tests/configretriever/configretriever.cpp
+++ b/config/src/tests/configretriever/configretriever.cpp
@@ -1,7 +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/log/log.h>
-LOG_SETUP("configretriever");
+
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/vespalib/data/slime/slime.h>
#include <vespa/config/config.h>
diff --git a/config/src/tests/frt/frt.cpp b/config/src/tests/frt/frt.cpp
index 26f95df8f42..0de1908858f 100644
--- a/config/src/tests/frt/frt.cpp
+++ b/config/src/tests/frt/frt.cpp
@@ -1,7 +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/log/log.h>
-LOG_SETUP("frt");
+
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/config/common/iconfigholder.h>
#include <vespa/config/common/trace.h>
diff --git a/config/src/tests/frtconnectionpool/frtconnectionpool.cpp b/config/src/tests/frtconnectionpool/frtconnectionpool.cpp
index 96dad86a54d..b563ea1929b 100644
--- a/config/src/tests/frtconnectionpool/frtconnectionpool.cpp
+++ b/config/src/tests/frtconnectionpool/frtconnectionpool.cpp
@@ -1,7 +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/log/log.h>
-LOG_SETUP("frtconnectionpool_test");
+
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/config/frt/frtconnectionpool.h>
#include <vespa/fnet/frt/error.h>
diff --git a/config/src/tests/subscription/subscription.cpp b/config/src/tests/subscription/subscription.cpp
index e47f8b11e60..5974279518a 100644
--- a/config/src/tests/subscription/subscription.cpp
+++ b/config/src/tests/subscription/subscription.cpp
@@ -1,5 +1,4 @@
// 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/test_kit.h>
#include <vespa/config/common/misc.h>
#include <vespa/config/common/configholder.h>
diff --git a/config/src/tests/trace/trace.cpp b/config/src/tests/trace/trace.cpp
index 566077d47e1..195f7d659a9 100644
--- a/config/src/tests/trace/trace.cpp
+++ b/config/src/tests/trace/trace.cpp
@@ -1,7 +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/log/log.h>
-LOG_SETUP("frt");
+
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/config/common/trace.h>
#include <vespa/vespalib/trace/tracenode.h>
diff --git a/config/src/vespa/config/helper/ifetchercallback.h b/config/src/vespa/config/helper/ifetchercallback.h
index 9bc6e848827..50c26f2d3fc 100644
--- a/config/src/vespa/config/helper/ifetchercallback.h
+++ b/config/src/vespa/config/helper/ifetchercallback.h
@@ -26,14 +26,11 @@ public:
template <typename ConfigType>
class IFetcherCallback : public ICallback
{
-public:
- virtual ~IFetcherCallback() { }
protected:
- virtual void configure(std::unique_ptr<const ConfigInstance> config) override {
+ void configure(std::unique_ptr<const ConfigInstance> config) override {
configure(std::unique_ptr<ConfigType>(static_cast<const ConfigType *>(config.release())));
}
virtual void configure(std::unique_ptr<ConfigType> config) = 0;
};
} // namespace config
-