summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-10-15 01:10:34 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-10-16 01:15:32 +0000
commit7d60f57e4a827f322731a7a33e9e554782b20ae3 (patch)
treee8567ea2d9942b3efc27f970b42b1273ab238d9f
parent1b26e9f17cb0179b88a83310fae889d5232dcd47 (diff)
QESDP::take(): document that it doesn't deref
Change-Id: Iba6c1caf4a7681815559db7c06691d02108ae855 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit bc4bd3c1bcaa955d3fea86deef1d8098dfc682d8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/corelib/tools/qshareddata.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/tools/qshareddata.cpp b/src/corelib/tools/qshareddata.cpp
index 2748f9d95f..63424aab33 100644
--- a/src/corelib/tools/qshareddata.cpp
+++ b/src/corelib/tools/qshareddata.cpp
@@ -583,7 +583,10 @@ QT_BEGIN_NAMESPACE
\since 5.12
Returns a pointer to the shared object, and resets \e this to be \nullptr.
- That is, this function sets the \e{d pointer} of \e this to \nullptr.
+ (That is, this function sets the \e{d pointer} of \e this to \nullptr.)
+
+ \note The reference count of the returned object will \b{not} be
+ decremented.
*/
/*! \fn template <class T> QExplicitlySharedDataPointer<T>::operator bool () const