diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-04-05 14:49:02 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-03 01:08:58 +0200 |
commit | b97070f2c489877b650283842fbbdea708102a40 (patch) | |
tree | e681cf7fe36fbb3419c5d8e974a77422825a2118 /src/corelib/io/qfileinfo.h | |
parent | 02aee5d174b0a1d0f925dc5c3243f77d0dc0c8c4 (diff) |
QtCore: add member-swap to shared classes
Implemented as in other shared classes (e.g. QPen).
Special case:
QUrlQuery: document existing swap().
Change-Id: I4b36cc9577fbf2232d4b2a2d8822d26e41e22cad
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qfileinfo.h')
-rw-r--r-- | src/corelib/io/qfileinfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/io/qfileinfo.h b/src/corelib/io/qfileinfo.h index 0f43ebd439..41db9d711d 100644 --- a/src/corelib/io/qfileinfo.h +++ b/src/corelib/io/qfileinfo.h @@ -74,6 +74,10 @@ public: inline QFileInfo&operator=(QFileInfo &&other) { qSwap(d_ptr, other.d_ptr); return *this; } #endif + + inline void swap(QFileInfo &other) + { qSwap(d_ptr, other.d_ptr); } + bool operator==(const QFileInfo &fileinfo) const; inline bool operator!=(const QFileInfo &fileinfo) const { return !(operator==(fileinfo)); } |