Doc: fix deprecation version for QScopedPointer's member-swap()

The code tells that it's deprecated in 6.2, while the docs were
mentioning 6.1. Update the docs to use the correct deprecation version.

Amends 1bf48c16b166c80d208f130fb4f8130f63ef741c.

Pick-to: 6.5 6.2
Change-Id: I4ec3b8e840ec5aa534ea1f2687a23584178bb4a6
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit 0b34a205cc3ab6985efa705d066e85167ce0181c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Ivan Solovev 2024-11-14 10:15:45 +01:00 committed by Qt Cherry-pick Bot
parent 6a77e6f550
commit d17bb8fa85

View File

@ -230,7 +230,7 @@ QT_BEGIN_NAMESPACE
/*! /*!
\fn template <typename T, typename Cleanup> void QScopedPointer<T, Cleanup>::swap(QScopedPointer &other) \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 \deprecated [6.2] Use \c std::unique_ptr instead; this function may let a pointer
escape its scope. escape its scope.
\memberswap{scoped pointer} \memberswap{scoped pointer}