summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/expr/qexpression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlpatterns/expr/qexpression.cpp')
-rw-r--r--src/xmlpatterns/expr/qexpression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmlpatterns/expr/qexpression.cpp b/src/xmlpatterns/expr/qexpression.cpp
index 3db1e4f..c7ecaea 100644
--- a/src/xmlpatterns/expr/qexpression.cpp
+++ b/src/xmlpatterns/expr/qexpression.cpp
@@ -86,9 +86,9 @@ void Expression::typeCheckOperands(const StaticContext::Ptr &context)
/* If we create a focus, we handle the last one specially, so avoid it in the loop. */
const bool createsFocus = has(CreatesFocusForLast);
- const SequenceType::List::const_iterator typeEnd(createsFocus ? --opTypes.constEnd()
+ const SequenceType::List::const_iterator typeEnd(createsFocus ? (opTypes.constEnd() - 1)
: opTypes.constEnd());
- const Expression::List::const_iterator end(createsFocus ? --ops.constEnd()
+ const Expression::List::const_iterator end(createsFocus ? (ops.constEnd() - 1)
: ops.constEnd());
SequenceType::List::const_iterator reqType(opTypes.constBegin());