From d9a3041a5d312832d8cec09bfe89979a1a4a6d85 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 6 Mar 2012 22:47:07 +0100 Subject: 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 Reviewed-by: Lars Knoll --- src/corelib/io/qdatastream.h | 2 +- src/corelib/io/qdiriterator.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/corelib/io/qdatastream.h b/src/corelib/io/qdatastream.h index 752246a543..451a7ab959 100644 --- a/src/corelib/io/qdatastream.h +++ b/src/corelib/io/qdatastream.h @@ -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 *); diff --git a/src/corelib/io/qdiriterator.h b/src/corelib/io/qdiriterator.h index 27189e2efd..d2d0645916 100644 --- a/src/corelib/io/qdiriterator.h +++ b/src/corelib/io/qdiriterator.h @@ -70,7 +70,7 @@ public: QDir::Filters filters = QDir::NoFilter, IteratorFlags flags = NoIteratorFlags); - virtual ~QDirIterator(); + ~QDirIterator(); QString next(); bool hasNext() const; -- cgit v1.2.3