diff options
Diffstat (limited to 'vespalog')
-rw-r--r-- | vespalog/src/vespa/log/log-target-fd.h | 6 | ||||
-rw-r--r-- | vespalog/src/vespa/log/log-target-file.h | 8 | ||||
-rw-r--r-- | vespalog/src/vespa/log/log.h | 3 |
3 files changed, 7 insertions, 10 deletions
diff --git a/vespalog/src/vespa/log/log-target-fd.h b/vespalog/src/vespa/log/log-target-fd.h index f75ff9b44e1..a3531cef3b3 100644 --- a/vespalog/src/vespa/log/log-target-fd.h +++ b/vespalog/src/vespa/log/log-target-fd.h @@ -15,9 +15,9 @@ private: public: explicit LogTargetFd(const char *target); - virtual int write(const char *buf, int len); - virtual ~LogTargetFd(); - virtual bool makeHumanReadable() const { return _istty; } + int write(const char *buf, int len) override; + ~LogTargetFd(); + bool makeHumanReadable() const override { return _istty; } }; diff --git a/vespalog/src/vespa/log/log-target-file.h b/vespalog/src/vespa/log/log-target-file.h index 7851b231e7d..6758b9664d2 100644 --- a/vespalog/src/vespa/log/log-target-file.h +++ b/vespalog/src/vespa/log/log-target-file.h @@ -1,12 +1,10 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once +#include "log-target.h" #include <sys/types.h> #include <sys/stat.h> - -#include "log-target.h" - namespace ns_log { class LogTargetFile : public LogTarget { @@ -22,8 +20,8 @@ private: public: explicit LogTargetFile(const char *target); - virtual ~LogTargetFile(); - virtual int write(const char *buf, int len); + ~LogTargetFile(); + int write(const char *buf, int len) override; }; diff --git a/vespalog/src/vespa/log/log.h b/vespalog/src/vespa/log/log.h index 827d615c4e8..a14ff87e1be 100644 --- a/vespalog/src/vespa/log/log.h +++ b/vespalog/src/vespa/log/log.h @@ -171,8 +171,7 @@ struct Timer { struct TestTimer : public Timer { uint64_t & _time; TestTimer(uint64_t & timeVar) : _time(timeVar) { } - virtual ~TestTimer() {} - virtual uint64_t getTimestamp() const { return _time; } + uint64_t getTimestamp() const override { return _time; } }; class Logger { |