summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qhash.h
diff options
context:
space:
mode:
authormread <qt-info@nokia.com>2009-08-05 09:32:17 (GMT)
committermread <qt-info@nokia.com>2009-08-05 09:32:17 (GMT)
commit638edc80e3b224a6830dda0a2bd3097cb82dcb96 (patch)
treebdbb6a19e69f1388abcd032c1795ac87b13ceec1 /src/corelib/tools/qhash.h
parent867bcdcce78acca9fde2ffc57e6a304cd2e25517 (diff)
parentacd877fbff4a0c785143fcc891eae73f5b986ff9 (diff)
downloadQt-638edc80e3b224a6830dda0a2bd3097cb82dcb96.zip
Qt-638edc80e3b224a6830dda0a2bd3097cb82dcb96.tar.gz
Qt-638edc80e3b224a6830dda0a2bd3097cb82dcb96.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt-s60-public
Diffstat (limited to 'src/corelib/tools/qhash.h')
-rw-r--r--src/corelib/tools/qhash.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/tools/qhash.h b/src/corelib/tools/qhash.h
index fc6a1e3a..a57fec7 100644
--- a/src/corelib/tools/qhash.h
+++ b/src/corelib/tools/qhash.h
@@ -150,10 +150,10 @@ struct Q_CORE_EXPORT QHashData
};
inline void QHashData::mightGrow() // ### Qt 5: eliminate
-{
+{
if (size >= numBuckets)
rehash(numBits + 1);
-}
+}
inline bool QHashData::willGrow()
{
@@ -992,12 +992,12 @@ Q_INLINE_TEMPLATE int QMultiHash<Key, T>::remove(const Key &key, const T &value)
typename QHash<Key, T>::iterator end(QHash<Key, T>::end());
while (i != end && i.key() == key) {
if (i.value() == value) {
-#if defined(Q_CC_RVCT)
- // RVCT has problems with scoping, apparently.
+#if defined(Q_CC_RVCT)
+ // RVCT has problems with scoping, apparently.
i = QHash<Key, T>::erase(i);
#else
i = erase(i);
-#endif
+#endif
++n;
} else {
++i;