summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2011-02-08 15:33:42 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2011-02-08 15:46:36 (GMT)
commita6ccb1a72173cec6381d519a720dc08cfdc03720 (patch)
treecf7d0be782905a1de36ca326895a25c458329445 /src/corelib
parent97c07046f9031f19005e7f57fc0dee09437f378b (diff)
downloadQt-a6ccb1a72173cec6381d519a720dc08cfdc03720.zip
Qt-a6ccb1a72173cec6381d519a720dc08cfdc03720.tar.gz
Qt-a6ccb1a72173cec6381d519a720dc08cfdc03720.tar.bz2
Fix compilation of QMutableSetIterator::value() with QT_STRICT_ITERATORS
Merge-request: 1078 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/tools/qset.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qset.h b/src/corelib/tools/qset.h
index 8075fbd..1074f99 100644
--- a/src/corelib/tools/qset.h
+++ b/src/corelib/tools/qset.h
@@ -330,7 +330,7 @@ class QMutableSetIterator
typedef typename QSet<T>::iterator iterator;
QSet<T> *c;
iterator i, n;
- inline bool item_exists() const { return n != c->constEnd(); }
+ inline bool item_exists() const { return c->constEnd() != n; }
public:
inline QMutableSetIterator(QSet<T> &container)