summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-08-05 12:34:12 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-08-05 13:16:29 (GMT)
commite9210d6882a5a2d07492b4f98576f3465d2f0aa1 (patch)
tree7ea1627351b12684f9c0bba67e08191e2655c069
parent3d3bf7cf3c94225be59966d1c6b79559cc251f95 (diff)
downloadQt-e9210d6882a5a2d07492b4f98576f3465d2f0aa1.zip
Qt-e9210d6882a5a2d07492b4f98576f3465d2f0aa1.tar.gz
Qt-e9210d6882a5a2d07492b4f98576f3465d2f0aa1.tar.bz2
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
-rw-r--r--src/corelib/tools/qsharedpointer.cpp4
-rw-r--r--src/corelib/tools/qsharedpointer.h1
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<T> &)
+ \sa QWeakPointer::QWeakPointer()
*/
/*!
@@ -553,7 +553,7 @@
qDebug() << "The value has already been deleted";
\endcode
- \sa QSharedPointer::QSharedPointer(const QWeakPointer<T> &)
+ \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<T> operator=(const QWeakPointer<T> &other);
QWeakPointer<T> operator=(const QSharedPointer<T> &other);
+ T *data() const;
void clear();
QSharedPointer<T> toStrongRef() const;