diff options
Diffstat (limited to 'common/query.h')
-rw-r--r-- | common/query.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/common/query.h b/common/query.h index 60c5630..3a56c9f 100644 --- a/common/query.h +++ b/common/query.h | |||
@@ -32,7 +32,8 @@ namespace Sink { | |||
32 | class Query | 32 | class Query |
33 | { | 33 | { |
34 | public: | 34 | public: |
35 | enum Flag { | 35 | enum Flag |
36 | { | ||
36 | /** Leave the query running an contiously update the result set. */ | 37 | /** Leave the query running an contiously update the result set. */ |
37 | LiveQuery | 38 | LiveQuery |
38 | }; | 39 | }; |
@@ -102,11 +103,11 @@ public: | |||
102 | return query; | 103 | return query; |
103 | } | 104 | } |
104 | 105 | ||
105 | Query(Flags flags = Flags()) | 106 | Query(Flags flags = Flags()) : limit(0) |
106 | : limit(0) | 107 | { |
107 | {} | 108 | } |
108 | 109 | ||
109 | Query& operator+=(const Query& rhs) | 110 | Query &operator+=(const Query &rhs) |
110 | { | 111 | { |
111 | resources += rhs.resources; | 112 | resources += rhs.resources; |
112 | ids += rhs.ids; | 113 | ids += rhs.ids; |
@@ -121,7 +122,7 @@ public: | |||
121 | return *this; | 122 | return *this; |
122 | } | 123 | } |
123 | 124 | ||
124 | friend Query operator+(Query lhs, const Query& rhs) | 125 | friend Query operator+(Query lhs, const Query &rhs) |
125 | { | 126 | { |
126 | lhs += rhs; | 127 | lhs += rhs; |
127 | return lhs; | 128 | return lhs; |
@@ -136,7 +137,6 @@ public: | |||
136 | bool liveQuery; | 137 | bool liveQuery; |
137 | int limit; | 138 | int limit; |
138 | }; | 139 | }; |
139 | |||
140 | } | 140 | } |
141 | 141 | ||
142 | Q_DECLARE_OPERATORS_FOR_FLAGS(Sink::Query::Flags) | 142 | Q_DECLARE_OPERATORS_FOR_FLAGS(Sink::Query::Flags) |