Doc: document QSharedPointer::swap() method
The function is already present for quite some time, but was never documented, so declare it as \since 5.3. Add swap() function to qsharedpointer.h so it's visible to QDoc, too. Change-Id: I8eba420878a096392fd181a180d5751101d37a50 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
9b58f95c63
commit
b4a427bac6
@ -477,6 +477,14 @@
|
||||
you will get a compiler error.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QSharedPointer::swap(QSharedPointer<T> &other);
|
||||
\since 5.3
|
||||
|
||||
Swaps this shared pointer instance with \a other. This function is
|
||||
very fast and never fails.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn T *QSharedPointer::data() const
|
||||
|
||||
|
@ -79,6 +79,8 @@ public:
|
||||
QSharedPointer<T> &operator=(const QSharedPointer<T> &other);
|
||||
QSharedPointer<T> &operator=(const QWeakPointer<T> &other);
|
||||
|
||||
void swap(QSharedPointer<T> &other);
|
||||
|
||||
QWeakPointer<T> toWeakRef() const;
|
||||
|
||||
void clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user