From 3f634202d70b677cb51587893c4b82dbd2123297 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 26 Jan 2017 15:00:37 +0100 Subject: SINK_EXPORT for free functions needs to go to the beginning --- common/log.h | 2 +- common/notification.h | 2 +- common/query.h | 10 +++++----- common/storage.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/common/log.h b/common/log.h index 0814af9..e85856a 100644 --- a/common/log.h +++ b/common/log.h @@ -80,7 +80,7 @@ struct SINK_EXPORT TraceTime const int time; }; -inline QDebug SINK_EXPORT operator<<(QDebug d, const TraceTime &time) +SINK_EXPORT inline QDebug operator<<(QDebug d, const TraceTime &time) { d << time.time << "[ms]"; return d; diff --git a/common/notification.h b/common/notification.h index b1bd290..8224f2a 100644 --- a/common/notification.h +++ b/common/notification.h @@ -53,4 +53,4 @@ public: }; } -QDebug SINK_EXPORT operator<<(QDebug dbg, const Sink::Notification &n); +SINK_EXPORT QDebug operator<<(QDebug dbg, const Sink::Notification &n); diff --git a/common/query.h b/common/query.h index 2aa2135..50e93de 100644 --- a/common/query.h +++ b/common/query.h @@ -537,11 +537,11 @@ private: } -QDebug SINK_EXPORT operator<<(QDebug dbg, const Sink::QueryBase::Comparator &); -QDebug SINK_EXPORT operator<<(QDebug dbg, const Sink::QueryBase &); -QDebug SINK_EXPORT operator<<(QDebug dbg, const Sink::Query &); -QDataStream & SINK_EXPORT operator<< (QDataStream &stream, const Sink::QueryBase &query); -QDataStream & SINK_EXPORT operator>> (QDataStream &stream, Sink::QueryBase &query); +SINK_EXPORT QDebug operator<<(QDebug dbg, const Sink::QueryBase::Comparator &); +SINK_EXPORT QDebug operator<<(QDebug dbg, const Sink::QueryBase &); +SINK_EXPORT QDebug operator<<(QDebug dbg, const Sink::Query &); +SINK_EXPORT QDataStream &operator<< (QDataStream &stream, const Sink::QueryBase &query); +SINK_EXPORT QDataStream &operator>> (QDataStream &stream, Sink::QueryBase &query); Q_DECLARE_OPERATORS_FOR_FLAGS(Sink::Query::Flags) Q_DECLARE_METATYPE(Sink::QueryBase); diff --git a/common/storage.h b/common/storage.h index a8e14a6..fd349f3 100644 --- a/common/storage.h +++ b/common/storage.h @@ -215,4 +215,4 @@ private: } } // namespace Sink -QDebug& SINK_EXPORT operator<<(QDebug &dbg, const Sink::Storage::DataStore::Error &error); +SINK_EXPORT QDebug& operator<<(QDebug &dbg, const Sink::Storage::DataStore::Error &error); -- cgit v1.2.3