diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-20 17:24:38 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-20 17:24:38 +0200 |
commit | b193ad8635549a2117af6ee59ab878a78056ab9c (patch) | |
tree | d4aaf6b7616eba8172f16930aaf6003b87f94778 /common/resultset.cpp | |
parent | ebc5c48c03b6145e604da7c313b35321d0a71142 (diff) | |
download | sink-b193ad8635549a2117af6ee59ab878a78056ab9c.tar.gz sink-b193ad8635549a2117af6ee59ab878a78056ab9c.zip |
Assert if we call the wrong next function
Diffstat (limited to 'common/resultset.cpp')
-rw-r--r-- | common/resultset.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/resultset.cpp b/common/resultset.cpp index 51914e9..c3ed5f6 100644 --- a/common/resultset.cpp +++ b/common/resultset.cpp | |||
@@ -65,6 +65,7 @@ ResultSet::ResultSet(const ResultSet &other) : mResultSet(other.mResultSet), mIt | |||
65 | 65 | ||
66 | bool ResultSet::next() | 66 | bool ResultSet::next() |
67 | { | 67 | { |
68 | Q_ASSERT(!mValueGenerator); | ||
68 | if (mIt) { | 69 | if (mIt) { |
69 | if (mIt != mResultSet.constEnd() && !mFirst) { | 70 | if (mIt != mResultSet.constEnd() && !mFirst) { |
70 | mIt++; | 71 | mIt++; |