diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-07-06 16:55:15 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-07-19 10:33:55 +0000 |
commit | 5c442321220e9ba7818e2eba4fa22b159b6477ab (patch) | |
tree | d4ef326c6fb5ce4d3e13289be8a839f5b4570cd0 /src/corelib/tools/qstack.h | |
parent | 46c5b8661222e86dca9363b14a84b46f959149a8 (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/qstack.h')
-rw-r--r-- | src/corelib/tools/qstack.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/tools/qstack.h b/src/corelib/tools/qstack.h index fa05e22de1..278e89ca2f 100644 --- a/src/corelib/tools/qstack.h +++ b/src/corelib/tools/qstack.h @@ -43,8 +43,7 @@ template<class T> class QStack : public QVector<T> { public: - inline QStack() {} - inline ~QStack() {} + // compiler-generated special member functions are fine! inline void swap(QStack<T> &other) { QVector<T>::swap(other); } // prevent QVector<->QStack swaps inline void push(const T &t) { QVector<T>::append(t); } T pop(); |