summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfileinfo.h
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2010-09-14 12:36:58 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2010-09-14 12:36:58 (GMT)
commit7769e7bf79f0c17a01874fa0b3f1b227c1e41e93 (patch)
treee69de39b2e33323b8213d0d7e7469bd33d9fb60e /src/corelib/io/qfileinfo.h
parent6cd8a6001fe87107d32524c6115d37b620d3e108 (diff)
parent8399cce50eb11db885e67a52055505951309cae8 (diff)
downloadQt-7769e7bf79f0c17a01874fa0b3f1b227c1e41e93.zip
Qt-7769e7bf79f0c17a01874fa0b3f1b227c1e41e93.tar.gz
Qt-7769e7bf79f0c17a01874fa0b3f1b227c1e41e93.tar.bz2
Merge branch '4.7' of ../qt-doc-team into 4.7
Diffstat (limited to 'src/corelib/io/qfileinfo.h')
-rw-r--r--src/corelib/io/qfileinfo.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/corelib/io/qfileinfo.h b/src/corelib/io/qfileinfo.h
index 7e82aed..f0128b1 100644
--- a/src/corelib/io/qfileinfo.h
+++ b/src/corelib/io/qfileinfo.h
@@ -44,7 +44,7 @@
#include <QtCore/qfile.h>
#include <QtCore/qlist.h>
-#include <QtCore/qscopedpointer.h>
+#include <QtCore/qshareddata.h>
QT_BEGIN_HEADER
@@ -166,10 +166,20 @@ public:
#endif
protected:
- QScopedPointer<QFileInfoPrivate> d_ptr;
+ QSharedDataPointer<QFileInfoPrivate> d_ptr;
private:
- Q_DECLARE_PRIVATE(QFileInfo)
+ inline QFileInfoPrivate* d_func()
+ {
+ detach();
+ return const_cast<QFileInfoPrivate *>(d_ptr.constData());
+ }
+
+ inline const QFileInfoPrivate* d_func() const
+ {
+ return d_ptr.constData();
+ }
};
+
Q_DECLARE_TYPEINFO(QFileInfo, Q_MOVABLE_TYPE);
#ifdef QT3_SUPPORT