From b97070f2c489877b650283842fbbdea708102a40 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 5 Apr 2012 14:49:02 +0200 Subject: 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 --- src/corelib/io/qprocess.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/corelib/io/qprocess.h') diff --git a/src/corelib/io/qprocess.h b/src/corelib/io/qprocess.h index fe5e84ccec..dbc226ef81 100644 --- a/src/corelib/io/qprocess.h +++ b/src/corelib/io/qprocess.h @@ -72,6 +72,8 @@ public: ~QProcessEnvironment(); QProcessEnvironment &operator=(const QProcessEnvironment &other); + inline void swap(QProcessEnvironment &other) { qSwap(d, other.d); } + bool operator==(const QProcessEnvironment &other) const; inline bool operator!=(const QProcessEnvironment &other) const { return !(*this == other); } -- cgit v1.2.3