summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qscopedpointer.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2024-10-08 10:01:19 +0200
committerMarc Mutz <marc.mutz@qt.io>2024-11-08 22:50:42 +0100
commit1bf48c16b166c80d208f130fb4f8130f63ef741c (patch)
tree005d4cc139fdf69743731971ae802fc8fb7d4c3d /src/corelib/tools/qscopedpointer.cpp
parent5a9bd64366b2ce2757843db0358cd48e4369b3d7 (diff)
[docs] Add missing docs for QScopedPointer::swap()
Only the ADL swap was documented, but this class has member-swap, too (albeit deprecated), so document it. Pick-to: 6.8 6.7 6.5 6.2 Change-Id: I71a6636172170387c9e4a264d2d118c2a9ce6f91 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/corelib/tools/qscopedpointer.cpp')
-rw-r--r--src/corelib/tools/qscopedpointer.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/tools/qscopedpointer.cpp b/src/corelib/tools/qscopedpointer.cpp
index 6416bce8dc1..f6eceb94e46 100644
--- a/src/corelib/tools/qscopedpointer.cpp
+++ b/src/corelib/tools/qscopedpointer.cpp
@@ -227,6 +227,15 @@ QT_BEGIN_NAMESPACE
\sa isNull()
*/
+/*!
+ \fn template <typename T, typename Cleanup> void QScopedPointer<T, Cleanup>::swap(QScopedPointer &other)
+
+ \deprecated [6.1] Use \c std::unique_ptr instead; this function may let a pointer
+ escape its scope.
+
+ \memberswap{scoped pointer}
+*/
+
/*! \fn template <typename T, typename Cleanup> void QScopedPointer<T, Cleanup>::swap(QScopedPointer<T, Cleanup> &lhs, QScopedPointer<T, Cleanup> &rhs)
\deprecated [6.2] Use \c std::unique_ptr instead; this function may let a pointer