summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qscopedpointer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qscopedpointer.cpp')
-rw-r--r--src/corelib/tools/qscopedpointer.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/corelib/tools/qscopedpointer.cpp b/src/corelib/tools/qscopedpointer.cpp
index 0848754de5..cf2f9bee0c 100644
--- a/src/corelib/tools/qscopedpointer.cpp
+++ b/src/corelib/tools/qscopedpointer.cpp
@@ -130,6 +130,33 @@ QT_BEGIN_NAMESPACE
Constructs this QScopedPointer instance and sets its pointer to \a p.
*/
+#ifndef Q_QDOC // QTBUG-32675, qdoc can't parse rvalue refs
+/*!
+ \fn QScopedPointer::QScopedPointer(QScopedPointer<T, Cleanup> &&other)
+
+ Move-constructs a QScopedPointer instance, making it point at the same
+ object that \a other was pointing to. \a other is reset to point to \c{NULL}.
+
+ \since 5.2
+*/
+
+/*!
+ \fn QScopedPointer<T, Cleanup> &operator=(QScopedPointer<T, Cleanup> &&other)
+
+ Move-assigns \a other to this QScopedPointer instance, transferring the
+ ownership of the managed pointer to this instance.
+
+ If \a other and this instance are actually the same object, this operator
+ does nothing.
+
+ Otherwise, this instance is set to point to the object \a other
+ is pointing to, and \a other is set to point to \c{NULL}.
+ If this instance was pointing to an object, that object is destroyed,
+
+ \since 5.2
+*/
+#endif
+
/*!
\fn QScopedPointer::~QScopedPointer()