From dd8b75d8fb2503aed9e29fabf3cfd3a33a0efb5a Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 17 Dec 2014 18:10:19 -0800 Subject: Remove workarounds for RVCT compiler bugs This does not try to remove support for RVCT. There has been no report of it working or failing to work, so the status continues to be unknown. In particular, the inline assembly code in atomic_armv[56].h remains in place. This commit only removes workarounds for compiler bugs or bogus warnings, assuming that anyone using this compiler has updated since Qt last tried to use it for Symbian in 2011. Note also how anonymous unions are now part of the language in C++11. Change-Id: Idc4fab092beb31239eb08b7e139bce2602adae81 Reviewed-by: Lars Knoll --- src/corelib/tools/qmap.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/corelib/tools/qmap.h') diff --git a/src/corelib/tools/qmap.h b/src/corelib/tools/qmap.h index ce550c540b..4b1fc65b22 100644 --- a/src/corelib/tools/qmap.h +++ b/src/corelib/tools/qmap.h @@ -1157,29 +1157,11 @@ public: inline QMultiMap operator+(const QMultiMap &other) const { QMultiMap result = *this; result += other; return result; } -#if !defined(Q_CC_RVCT) - // RVCT compiler doesn't handle using-keyword right when used functions are overloaded in child class using QMap::contains; using QMap::remove; using QMap::count; using QMap::find; using QMap::constFind; -#else - inline bool contains(const Key &key) const - { return QMap::contains(key); } - inline int remove(const Key &key) - { return QMap::remove(key); } - inline int count(const Key &key) const - { return QMap::count(key); } - inline int count() const - { return QMap::count(); } - inline typename QMap::iterator find(const Key &key) - { return QMap::find(key); } - inline typename QMap::const_iterator find(const Key &key) const - { return QMap::find(key); } - inline typename QMap::const_iterator constFind(const Key &key) const - { return QMap::constFind(key); } -#endif bool contains(const Key &key, const T &value) const; -- cgit v1.2.3