diff options
-rw-r--r-- | common/query.cpp | 2 | ||||
-rw-r--r-- | tests/querytest.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/common/query.cpp b/common/query.cpp index 67b74cc..3b717aa 100644 --- a/common/query.cpp +++ b/common/query.cpp | |||
@@ -24,6 +24,8 @@ | |||
24 | 24 | ||
25 | using namespace Sink; | 25 | using namespace Sink; |
26 | 26 | ||
27 | static const int registerQuery = qRegisterMetaTypeStreamOperators<Sink::QueryBase>(); | ||
28 | |||
27 | QDebug operator<<(QDebug dbg, const Sink::Query::Comparator &c) | 29 | QDebug operator<<(QDebug dbg, const Sink::Query::Comparator &c) |
28 | { | 30 | { |
29 | if (c.comparator == Sink::Query::Comparator::Equals) { | 31 | if (c.comparator == Sink::Query::Comparator::Equals) { |
diff --git a/tests/querytest.cpp b/tests/querytest.cpp index 06c6ad6..594e55c 100644 --- a/tests/querytest.cpp +++ b/tests/querytest.cpp | |||
@@ -47,7 +47,6 @@ private slots: | |||
47 | 47 | ||
48 | void testSerialization() | 48 | void testSerialization() |
49 | { | 49 | { |
50 | qRegisterMetaTypeStreamOperators<Sink::QueryBase>(); | ||
51 | 50 | ||
52 | auto type = QByteArray("type"); | 51 | auto type = QByteArray("type"); |
53 | auto sort = QByteArray("sort"); | 52 | auto sort = QByteArray("sort"); |