summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qscopedpointer.cpp25
-rw-r--r--src/corelib/tools/qscopedpointer.h13
2 files changed, 0 insertions, 38 deletions
diff --git a/src/corelib/tools/qscopedpointer.cpp b/src/corelib/tools/qscopedpointer.cpp
index 22155d6d3ad..fb0025c1ff9 100644
--- a/src/corelib/tools/qscopedpointer.cpp
+++ b/src/corelib/tools/qscopedpointer.cpp
@@ -134,31 +134,6 @@ QT_BEGIN_NAMESPACE
*/
/*!
- \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
-*/
-
-/*!
\fn QScopedPointer::~QScopedPointer()
Destroys this QScopedPointer object. Delete the object its pointer points
diff --git a/src/corelib/tools/qscopedpointer.h b/src/corelib/tools/qscopedpointer.h
index dba37dae234..dd6e5bd57b9 100644
--- a/src/corelib/tools/qscopedpointer.h
+++ b/src/corelib/tools/qscopedpointer.h
@@ -109,19 +109,6 @@ public:
Cleanup::cleanup(oldD);
}
-#ifdef Q_COMPILER_RVALUE_REFS
- inline QScopedPointer(QScopedPointer<T, Cleanup> &&other)
- : d(other.take())
- {
- }
-
- inline QScopedPointer<T, Cleanup> &operator=(QScopedPointer<T, Cleanup> &&other)
- {
- reset(other.take());
- return *this;
- }
-#endif
-
inline T &operator*() const
{
Q_ASSERT(d);