summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdir.h
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2010-08-30 18:47:13 +0200
committerJoão Abecasis <joao.abecasis@nokia.com>2010-09-07 14:17:08 +0200
commitbde86efc2ad34aa3756ca74e31e3052de5254261 (patch)
treefe0a4b922c68bec952331517571737f4ca4ec60c /src/corelib/io/qdir.h
parent96f8768962c4c8f088bb51af227d069568deaba3 (diff)
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.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/corelib/io/qdir.h b/src/corelib/io/qdir.h
index abfe3873c4..7e5fbac420 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;