From e9210d6882a5a2d07492b4f98576f3465d2f0aa1 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 5 Aug 2009 14:34:12 +0200 Subject: Doc: fix qdoc errors in QSharedPointer documentation. I added the documentation to QWeakPointer::data, but I forgot to declare the class in the qdoc stub. Also, apparently I cannot link to a specific overload of a given function. Reviewed-by: Volker Hilsheimer --- src/corelib/tools/qsharedpointer.cpp | 4 ++-- src/corelib/tools/qsharedpointer.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/corelib/tools/qsharedpointer.cpp b/src/corelib/tools/qsharedpointer.cpp index 10f35c7..f18dee8 100644 --- a/src/corelib/tools/qsharedpointer.cpp +++ b/src/corelib/tools/qsharedpointer.cpp @@ -365,7 +365,7 @@ Returns a weak reference object that shares the pointer referenced by this object. - \sa QWeakPointer::QWeakPointer(const QSharedPointer &) + \sa QWeakPointer::QWeakPointer() */ /*! @@ -553,7 +553,7 @@ qDebug() << "The value has already been deleted"; \endcode - \sa QSharedPointer::QSharedPointer(const QWeakPointer &) + \sa QSharedPointer::QSharedPointer() */ /*! diff --git a/src/corelib/tools/qsharedpointer.h b/src/corelib/tools/qsharedpointer.h index abd83ad..2f86ce7 100644 --- a/src/corelib/tools/qsharedpointer.h +++ b/src/corelib/tools/qsharedpointer.h @@ -115,6 +115,7 @@ public: QWeakPointer operator=(const QWeakPointer &other); QWeakPointer operator=(const QSharedPointer &other); + T *data() const; void clear(); QSharedPointer toStrongRef() const; -- cgit v0.12