summaryrefslogtreecommitdiffstats
path: root/vespalog
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-04-03 17:22:27 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-04-04 16:36:17 +0200
commitd57ddaefd37e6a19d3a6937fbf9a655dbafcdba5 (patch)
tree56f50116805e8ae7d2287c934e6ccc073142d0ce /vespalog
parent3dab091fd0ec3ffd71af3e19e55ed3a4437b8d8b (diff)
Use override
Diffstat (limited to 'vespalog')
-rw-r--r--vespalog/src/vespa/log/log-target-fd.h6
-rw-r--r--vespalog/src/vespa/log/log-target-file.h8
-rw-r--r--vespalog/src/vespa/log/log.h3
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 {