From cf8c6dfe32580d2d93cb67f496f50fa14c572f5c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 31 Jan 2016 11:21:48 +0100 Subject: Enabled and fixed a bunch of warnings --- common/log.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'common/log.cpp') 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: { open(WriteOnly); } - virtual ~DebugStream(){}; + virtual ~DebugStream(); bool isSequential() const { return true; } qint64 readData(char *, qint64) { return 0; /* eof */ } @@ -35,6 +35,10 @@ private: Q_DISABLE_COPY(DebugStream) }; +//Virtual method anchor +DebugStream::~DebugStream() +{} + class NullStream: public QIODevice { public: @@ -43,7 +47,7 @@ public: { open(WriteOnly); } - virtual ~NullStream(){}; + virtual ~NullStream(); bool isSequential() const { return true; } qint64 readData(char *, qint64) { return 0; /* eof */ } @@ -56,6 +60,10 @@ private: Q_DISABLE_COPY(NullStream) }; +//Virtual method anchor +NullStream::~NullStream() +{} + /* * ANSI color codes: * 0: reset colors/style @@ -175,8 +183,6 @@ QDebug Sink::Log::debugStream(DebugLevel debugLevel, int line, const char* file, prefix = "Error: "; prefixColorCode = ANSI_Colors::Red; break; - default: - break; }; bool showLocation = false; -- cgit v1.2.3