diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-31 11:21:48 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-31 11:21:48 +0100 |
commit | cf8c6dfe32580d2d93cb67f496f50fa14c572f5c (patch) | |
tree | f06e531c8316810f6fed688f3d7c16fa6582c4ac /common/log.cpp | |
parent | 7c52358e3fc9798715895a57e6eee3274a2b84f3 (diff) | |
download | sink-cf8c6dfe32580d2d93cb67f496f50fa14c572f5c.tar.gz sink-cf8c6dfe32580d2d93cb67f496f50fa14c572f5c.zip |
Enabled and fixed a bunch of warnings
Diffstat (limited to 'common/log.cpp')
-rw-r--r-- | common/log.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/common/log.cpp b/common/log.cpp index 45bbec1..316031d 100644 --- a/common/log.cpp +++ b/common/log.cpp | |||
@@ -17,7 +17,7 @@ public: | |||
17 | { | 17 | { |
18 | open(WriteOnly); | 18 | open(WriteOnly); |
19 | } | 19 | } |
20 | virtual ~DebugStream(){}; | 20 | virtual ~DebugStream(); |
21 | 21 | ||
22 | bool isSequential() const { return true; } | 22 | bool isSequential() const { return true; } |
23 | qint64 readData(char *, qint64) { return 0; /* eof */ } | 23 | qint64 readData(char *, qint64) { return 0; /* eof */ } |
@@ -35,6 +35,10 @@ private: | |||
35 | Q_DISABLE_COPY(DebugStream) | 35 | Q_DISABLE_COPY(DebugStream) |
36 | }; | 36 | }; |
37 | 37 | ||
38 | //Virtual method anchor | ||
39 | DebugStream::~DebugStream() | ||
40 | {} | ||
41 | |||
38 | class NullStream: public QIODevice | 42 | class NullStream: public QIODevice |
39 | { | 43 | { |
40 | public: | 44 | public: |
@@ -43,7 +47,7 @@ public: | |||
43 | { | 47 | { |
44 | open(WriteOnly); | 48 | open(WriteOnly); |
45 | } | 49 | } |
46 | virtual ~NullStream(){}; | 50 | virtual ~NullStream(); |
47 | 51 | ||
48 | bool isSequential() const { return true; } | 52 | bool isSequential() const { return true; } |
49 | qint64 readData(char *, qint64) { return 0; /* eof */ } | 53 | qint64 readData(char *, qint64) { return 0; /* eof */ } |
@@ -56,6 +60,10 @@ private: | |||
56 | Q_DISABLE_COPY(NullStream) | 60 | Q_DISABLE_COPY(NullStream) |
57 | }; | 61 | }; |
58 | 62 | ||
63 | //Virtual method anchor | ||
64 | NullStream::~NullStream() | ||
65 | {} | ||
66 | |||
59 | /* | 67 | /* |
60 | * ANSI color codes: | 68 | * ANSI color codes: |
61 | * 0: reset colors/style | 69 | * 0: reset colors/style |
@@ -175,8 +183,6 @@ QDebug Sink::Log::debugStream(DebugLevel debugLevel, int line, const char* file, | |||
175 | prefix = "Error: "; | 183 | prefix = "Error: "; |
176 | prefixColorCode = ANSI_Colors::Red; | 184 | prefixColorCode = ANSI_Colors::Red; |
177 | break; | 185 | break; |
178 | default: | ||
179 | break; | ||
180 | }; | 186 | }; |
181 | 187 | ||
182 | bool showLocation = false; | 188 | bool showLocation = false; |