From b193ad8635549a2117af6ee59ab878a78056ab9c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 20 Sep 2016 17:24:38 +0200 Subject: Assert if we call the wrong next function --- common/resultset.cpp | 1 + 1 file changed, 1 insertion(+) 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 bool ResultSet::next() { + Q_ASSERT(!mValueGenerator); if (mIt) { if (mIt != mResultSet.constEnd() && !mFirst) { mIt++; -- cgit v1.2.3