From cbefd42e39d28d478373b9191cc9b3340481390b Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Thu, 22 Oct 2020 16:56:06 +0200 Subject: Fix documentation for QVariantRef and QVariantPointer Change-Id: I86b749ec14876df98d5d873cf2274facea49f0c5 Reviewed-by: Paul Wicking --- src/corelib/kernel/qvariant.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/corelib/kernel') diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp index f7652e28d4..55fd001cfd 100644 --- a/src/corelib/kernel/qvariant.cpp +++ b/src/corelib/kernel/qvariant.cpp @@ -2744,40 +2744,40 @@ const void *QtPrivate::QVariantTypeCoercer::coerce(const QVariant &value, const */ /*! - \fn QVariantRef::QVariantRef(const Pointer *pointer) + \fn template QVariantRef::QVariantRef(const Pointer *pointer) Creates a QVariantRef from an \a pointer. */ /*! - \fn QVariantRef &QVariantRef::operator=(const QVariant &value) + \fn template QVariantRef &QVariantRef::operator=(const QVariant &value) Assigns a new \a value to the value pointed to by the pointer this QVariantRef refers to. */ /*! - \fn QVariantRef &QVariantRef::operator=(const QVariantRef &value) + \fn template QVariantRef &QVariantRef::operator=(const QVariantRef &value) Assigns a new \a value to the value pointed to by the pointer this QVariantRef refers to. */ /*! - \fn QVariantRef &QVariantRef::operator=(QVariantRef &&value) + \fn template QVariantRef &QVariantRef::operator=(QVariantRef &&value) Assigns a new \a value to the value pointed to by the pointer this QVariantRef refers to. */ /*! - \fn QVariantRef::operator QVariant() const + \fn template QVariantRef::operator QVariant() const Resolves the QVariantRef to an actual QVariant. */ /*! - \fn void swap(QVariantRef a, QVariantRef b) + \fn template void swap(QVariantRef a, QVariantRef b) Swaps the values pointed to by the pointers the QVariantRefs \a a and \a b refer to. @@ -2824,7 +2824,7 @@ const QVariant *QVariantConstPointer::operator->() const \class QVariantPointer \since 6.0 \inmodule QtCore - \brief Emulated pointer to QVariant based on a pointer. + \brief QVariantPointer is a template class that emulates a pointer to QVariant based on a pointer. QVariantConstPointer wraps a pointer and returns QVariantRef to it from its operator*(). This makes it suitable as replacement for an actual pointer. We @@ -2833,19 +2833,19 @@ const QVariant *QVariantConstPointer::operator->() const */ /*! - \fn QVariantPointer::QVariantPointer(const Pointer *pointer) + \fn template QVariantPointer::QVariantPointer(const Pointer *pointer) Constructs a QVariantPointer from the given \a pointer. */ /*! - \fn QVariantRef QVariantPointer::operator*() const + \fn template QVariantRef QVariantPointer::operator*() const Dereferences the QVariantPointer to a QVariantRef. */ /*! - \fn Pointer QVariantPointer::operator->() const + \fn template Pointer QVariantPointer::operator->() const Dereferences and returns the pointer. The pointer is expected to also implement operator->(). -- cgit v1.2.3