diff options
author | João Abecasis <joao.abecasis@nokia.com> | 2010-08-30 16:47:13 (GMT) |
---|---|---|
committer | João Abecasis <joao.abecasis@nokia.com> | 2010-09-07 12:17:08 (GMT) |
commit | bde86efc2ad34aa3756ca74e31e3052de5254261 (patch) | |
tree | fe0a4b922c68bec952331517571737f4ca4ec60c /src/corelib/io/qdir.h | |
parent | 96f8768962c4c8f088bb51af227d069568deaba3 (diff) | |
download | Qt-bde86efc2ad34aa3756ca74e31e3052de5254261.zip Qt-bde86efc2ad34aa3756ca74e31e3052de5254261.tar.gz Qt-bde86efc2ad34aa3756ca74e31e3052de5254261.tar.bz2 |
Reverting QDir::detach introduced earlier
From the client API it is a broken concept, because it could leave the
user with an uninitialized file engine. Fixing to initialize the file
engine, would mean it is useless for internal use where file engines are
initialized separately.
In the end, removing both the QDir::detach introduced earlier and
throwing away the private d_func'tions altogether is a binary-compatible
change that should allow us to push this change in a patch release
(fingers crossed!)
Reviewed-by: Thiago Macieira
Diffstat (limited to 'src/corelib/io/qdir.h')
-rw-r--r-- | src/corelib/io/qdir.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/corelib/io/qdir.h b/src/corelib/io/qdir.h index abfe387..7e5fbac 100644 --- a/src/corelib/io/qdir.h +++ b/src/corelib/io/qdir.h @@ -59,17 +59,6 @@ class Q_CORE_EXPORT QDir { protected: QSharedDataPointer<QDirPrivate> d_ptr; -private: - inline QDirPrivate* d_func() - { - detach(); - return const_cast<QDirPrivate *>(d_ptr.constData()); - } - - inline const QDirPrivate* d_func() const - { - return d_ptr.constData(); - } public: enum Filter { Dirs = 0x001, @@ -140,8 +129,6 @@ public: QDir &operator=(const QDir &); QDir &operator=(const QString &path); - void detach(); - void setPath(const QString &path); QString path() const; QString absolutePath() const; |