From: Lars Knoll Date: Sun, 15 Jan 2012 20:09:14 +0000 (+0100) Subject: Fix ### comments in QSet X-Git-Tag: qt-v5.0.0-alpha1~1791 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb5ae21c417b0c2571f3d5c1025758eaec2c380e;p=profile%2Fivi%2Fqtbase.git Fix ### comments in QSet Change-Id: I302be7dc4cd7a9c2b9e35e8142ca100d6f86da7c Reviewed-by: Robin Burchell Reviewed-by: João Abecasis --- diff --git a/src/corelib/tools/qset.h b/src/corelib/tools/qset.h index 7694faa..7ad16a7 100644 --- a/src/corelib/tools/qset.h +++ b/src/corelib/tools/qset.h @@ -176,9 +176,8 @@ public: typedef iterator Iterator; typedef const_iterator ConstIterator; inline int count() const { return q_hash.count(); } - inline const_iterator insert(const T &value) // ### Qt 5: should return an 'iterator' - { return static_cast(q_hash.insert(value, - QHashDummyValue())); } + inline iterator insert(const T &value) + { return static_cast(q_hash.insert(value, QHashDummyValue())); } iterator find(const T &value) { return q_hash.find(value); } const_iterator find(const T &value) const { return q_hash.find(value); } inline const_iterator constFind(const T &value) const { return find(value); } @@ -216,17 +215,6 @@ public: { QSet result = *this; result += other; return result; } inline QSet operator-(const QSet &other) const { QSet result = *this; result -= other; return result; } -#if QT_VERSION < 0x050000 - // ### Qt 5: remove - inline QSet operator|(const QSet &other) - { QSet result = *this; result |= other; return result; } - inline QSet operator&(const QSet &other) - { QSet result = *this; result &= other; return result; } - inline QSet operator+(const QSet &other) - { QSet result = *this; result += other; return result; } - inline QSet operator-(const QSet &other) - { QSet result = *this; result -= other; return result; } -#endif QList toList() const; inline QList values() const { return toList(); }