diff options
author | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-10 15:57:26 +0200 |
---|---|---|
committer | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-10 15:57:26 +0200 |
commit | 7b5f43fd68e33cd6afe7150430732ee02b1c4ffa (patch) | |
tree | 34bb34dd3661a70cbb5b3a63b86d3885fdfab069 | |
parent | 2d4b89a786f9f14235f89734cb0a0b0ab1f825b6 (diff) |
add override in vespalog module
-rw-r--r-- | vespalog/src/logger/llreader.h | 2 | ||||
-rw-r--r-- | vespalog/src/test/threads/testthreads.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/vespalog/src/logger/llreader.h b/vespalog/src/logger/llreader.h index 7519f99959f..27b39d23df7 100644 --- a/vespalog/src/logger/llreader.h +++ b/vespalog/src/logger/llreader.h @@ -15,7 +15,7 @@ public: MsgException(const MsgException &x) : std::exception(), _string(x._string) {} MsgException(const char *s) : _string(s) {} ~MsgException() throw() {} // nothing to do - const char *what() const throw() { return _string; } + const char *what() const throw() override { return _string; } }; diff --git a/vespalog/src/test/threads/testthreads.cpp b/vespalog/src/test/threads/testthreads.cpp index 6e5f72da524..515fa10c11f 100644 --- a/vespalog/src/test/threads/testthreads.cpp +++ b/vespalog/src/test/threads/testthreads.cpp @@ -15,7 +15,7 @@ class FileThread : public FastOS_Runnable string _file; public: FileThread(string file) : _done(false), _file(file) {} - virtual void Run(FastOS_ThreadInterface *thread, void *arg); + virtual void Run(FastOS_ThreadInterface *thread, void *arg) override; void stop() {_done = true; } }; @@ -25,7 +25,7 @@ class LoggerThread : public FastOS_Runnable public: bool _useLogBuffer; LoggerThread() : _done(false), _useLogBuffer(false) {} - virtual void Run(FastOS_ThreadInterface *thread, void *arg); + virtual void Run(FastOS_ThreadInterface *thread, void *arg) override; void stop() {_done = true; } }; @@ -74,7 +74,7 @@ LoggerThread::Run(FastOS_ThreadInterface *, void *) class ThreadTester : public FastOS_Application { public: - int Main(); + int Main() override; }; int |