diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-10-15 01:10:34 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-10-16 01:07:48 +0200 |
commit | bc4bd3c1bcaa955d3fea86deef1d8098dfc682d8 (patch) | |
tree | 262f51e6fc8f94028c6db7610e0347c71b29fa71 /src/corelib | |
parent | 56475926e686408acdb3d2db3dfa072c36d0c574 (diff) |
QESDP::take(): document that it doesn't deref
Change-Id: Iba6c1caf4a7681815559db7c06691d02108ae855
Pick-to: 5.15
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/tools/qshareddata.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/tools/qshareddata.cpp b/src/corelib/tools/qshareddata.cpp index 899a94b65a..42360a4cae 100644 --- a/src/corelib/tools/qshareddata.cpp +++ b/src/corelib/tools/qshareddata.cpp @@ -612,7 +612,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 |