summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/io/qdir.h')
-rw-r--r--src/corelib/io/qdir.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/io/qdir.h b/src/corelib/io/qdir.h
index a5105fe2fb..a6f9b326ad 100644
--- a/src/corelib/io/qdir.h
+++ b/src/corelib/io/qdir.h
@@ -115,6 +115,9 @@ public:
{ qSwap(d_ptr, other.d_ptr); return *this; }
#endif
+ inline void swap(QDir &other)
+ { qSwap(d_ptr, other.d_ptr); }
+
void setPath(const QString &path);
QString path() const;
QString absolutePath() const;