[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.7 6.5 6.2 Change-Id: I71a6636172170387c9e4a264d2d118c2a9ce6f91 Reviewed-by: Topi Reiniö <topi.reinio@qt.io> (cherry picked from commit 1bf48c16b166c80d208f130fb4f8130f63ef741c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
97420aaa46
commit
6be6081ffe
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user