summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2010-11-12 11:05:04 (GMT)
committerMartin Smith <martin.smith@nokia.com>2010-11-12 11:05:04 (GMT)
commit4e0865200244b70e6d4be62b57bdf248342834ba (patch)
tree0de9b2e0c2b596e7fa0b3a93db76ee4cf69c98b9
parentf966c3f22cd453a47ef6754c24b050bc5c2ac5f0 (diff)
downloadQt-4e0865200244b70e6d4be62b57bdf248342834ba.zip
Qt-4e0865200244b70e6d4be62b57bdf248342834ba.tar.gz
Qt-4e0865200244b70e6d4be62b57bdf248342834ba.tar.bz2
doc: Stated that the destructor does not call close().
Task-number: QTBUG-15277, QTBUG-8231
-rw-r--r--src/corelib/io/qiodevice.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/io/qiodevice.cpp b/src/corelib/io/qiodevice.cpp
index 26e587d..68fb2bf 100644
--- a/src/corelib/io/qiodevice.cpp
+++ b/src/corelib/io/qiodevice.cpp
@@ -395,7 +395,10 @@ QIODevice::QIODevice(QIODevicePrivate &dd, QObject *parent)
/*!
- Destructs the QIODevice object.
+ The destructor is virtual, and QIODevice is an abstract base
+ class. This destructor does not call close(), but the subclass
+ destructor might. If you are in doubt, call close() before
+ destroying the QIODevice.
*/
QIODevice::~QIODevice()
{