QDirIterator, QDataStream: remove virtual dtor

These two classes are not meant to be polymorphic,
and have no other other virtual functions besides
the destructor, so remove the overhead of the
vtable completely.

Change-Id: I08b93898312c2fbbe4db92d4f1c444c6417fe19a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
This commit is contained in:
Marc Mutz 2012-03-06 22:47:07 +01:00 committed by Qt by Nokia
parent 6ec0823fd1
commit d9a3041a5d
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ public:
explicit QDataStream(QIODevice *);
QDataStream(QByteArray *, QIODevice::OpenMode flags);
QDataStream(const QByteArray &);
virtual ~QDataStream();
~QDataStream();
QIODevice *device() const;
void setDevice(QIODevice *);

View File

@ -70,7 +70,7 @@ public:
QDir::Filters filters = QDir::NoFilter,
IteratorFlags flags = NoIteratorFlags);
virtual ~QDirIterator();
~QDirIterator();
QString next();
bool hasNext() const;