summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qlist.h
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@nokia.com>2010-02-17 15:11:50 +0100
committerZeno Albisser <zeno.albisser@nokia.com>2010-02-17 15:13:45 +0100
commitc1db6c2c5a3bbe96a628207af169a032d535426f (patch)
tree5934367c77bb11501134fcc8dfd964184e7061d4 /src/corelib/tools/qlist.h
parentfc1f21b62243bc377889bf142da3b6ecad05aff0 (diff)
Added note to make QList destructor virtual in version 5
Reviewed-by: TrustMe
Diffstat (limited to 'src/corelib/tools/qlist.h')
-rw-r--r--src/corelib/tools/qlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h
index 1ad752889a..a549f2f69b 100644
--- a/src/corelib/tools/qlist.h
+++ b/src/corelib/tools/qlist.h
@@ -112,7 +112,7 @@ class QList
public:
inline QList() : d(&QListData::shared_null) { d->ref.ref(); }
inline QList(const QList<T> &l) : d(l.d) { d->ref.ref(); if (!d->sharable) detach_helper(); }
- ~QList();
+ ~QList(); // ### Qt5: make this destructor virtual
QList<T> &operator=(const QList<T> &l);
bool operator==(const QList<T> &l) const;
inline bool operator!=(const QList<T> &l) const { return !(*this == l); }