diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-30 20:16:57 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-30 20:16:57 +0200 |
commit | 162d2aa4fce5adc54c22b41e8580bd4d72a235e1 (patch) | |
tree | da1c4920117c94c8fe5c0ed90d688a0e2b970700 | |
parent | d707afe2587e1f2727dfd2d181b745c598d9efaa (diff) |
logic/track-logger: fix misuse of virtual keyword
-rw-r--r-- | opentrack-logic/tracklogger.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/opentrack-logic/tracklogger.hpp b/opentrack-logic/tracklogger.hpp index b4fcefc3..fd8620a1 100644 --- a/opentrack-logic/tracklogger.hpp +++ b/opentrack-logic/tracklogger.hpp @@ -14,10 +14,11 @@ public: { } + virtual ~TrackLogger(); + virtual void write(const char *) { } - virtual ~TrackLogger(); virtual void write(const double *, int n) { @@ -40,15 +41,14 @@ class OPENTRACK_LOGIC_EXPORT TrackLoggerCSV : public TrackLogger bool first_col; inline void handle_first_col_sep(); public: - TrackLoggerCSV(const QString &filename) : TrackLogger(), - first_col(true) + TrackLoggerCSV(const QString &filename) : first_col(true) { out.open(filename.toStdString()); } bool is_open() const { return out.is_open(); } - virtual void write(const char *s); - virtual void write(const double *p, int n); - virtual void next_line(); + void write(const char *s) override; + void write(const double *p, int n) override; + void next_line() override; }; |