diff options
author | Zeno Albisser <zeno.albisser@nokia.com> | 2010-02-17 14:11:50 (GMT) |
---|---|---|
committer | Zeno Albisser <zeno.albisser@nokia.com> | 2010-02-17 14:13:45 (GMT) |
commit | c1db6c2c5a3bbe96a628207af169a032d535426f (patch) | |
tree | 5934367c77bb11501134fcc8dfd964184e7061d4 /src/corelib | |
parent | fc1f21b62243bc377889bf142da3b6ecad05aff0 (diff) | |
download | Qt-c1db6c2c5a3bbe96a628207af169a032d535426f.zip Qt-c1db6c2c5a3bbe96a628207af169a032d535426f.tar.gz Qt-c1db6c2c5a3bbe96a628207af169a032d535426f.tar.bz2 |
Added note to make QList destructor virtual in version 5
Reviewed-by: TrustMe
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/tools/qlist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h index 1ad7528..a549f2f 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); } |