summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qhash.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-07-06 16:55:15 +0200
committerMarc Mutz <marc.mutz@kdab.com>2015-07-19 10:33:55 +0000
commit5c442321220e9ba7818e2eba4fa22b159b6477ab (patch)
treed4ef326c6fb5ce4d3e13289be8a839f5b4570cd0 /src/corelib/tools/qhash.h
parent46c5b8661222e86dca9363b14a84b46f959149a8 (diff)
QSet/QQueue/QStack: use compiler-generated special member functions
They do the right thing (except move special member functions on MSVC, but that's MSVC's problem). Change-Id: I699e1be83c0568821f8c6b84394a2713bb22e8e7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qhash.h')
-rw-r--r--src/corelib/tools/qhash.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/tools/qhash.h b/src/corelib/tools/qhash.h
index 5a4175ec5d..94cd4c0205 100644
--- a/src/corelib/tools/qhash.h
+++ b/src/corelib/tools/qhash.h
@@ -916,6 +916,9 @@ public:
insert(it->first, it->second);
}
#endif
+ // compiler-generated copy/move ctors/assignment operators are fine!
+ // compiler-generated destructor is fine!
+
QMultiHash(const QHash<Key, T> &other) : QHash<Key, T>(other) {}
void swap(QMultiHash &other) { QHash<Key, T>::swap(other); } // prevent QMultiHash<->QHash swaps