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:
parent
6ec0823fd1
commit
d9a3041a5d
@ -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 *);
|
||||
|
@ -70,7 +70,7 @@ public:
|
||||
QDir::Filters filters = QDir::NoFilter,
|
||||
IteratorFlags flags = NoIteratorFlags);
|
||||
|
||||
virtual ~QDirIterator();
|
||||
~QDirIterator();
|
||||
|
||||
QString next();
|
||||
bool hasNext() const;
|
||||
|
Loading…
Reference in New Issue
Block a user