summaryrefslogtreecommitdiffstats
path: root/common/log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/log.cpp')
-rw-r--r--common/log.cpp14
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
39DebugStream::~DebugStream()
40{}
41
38class NullStream: public QIODevice 42class NullStream: public QIODevice
39{ 43{
40public: 44public:
@@ -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
64NullStream::~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;