From 3d82b74c3a2b52ef4239fcb7abd9b54d8cb69805 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Thu, 10 Dec 2015 12:44:11 +0100 Subject: Doc: Fix return type of QWeakPointer assignment operators Imprementation of QWeakPointer assign operators have return types that are references. However, in qsharedpointer.h where separate declarations are held for documentation purposes, the reference qualifiers were missing. This led to incorrect documentation being generated. Task-number: QTBUG-49862 Change-Id: I32727762826feb15a3f4f22446e51d2df16e605f Reviewed-by: Timur Pocheptsov --- src/corelib/tools/qsharedpointer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/corelib/tools/qsharedpointer.h b/src/corelib/tools/qsharedpointer.h index 279ec36a28..af42d06991 100644 --- a/src/corelib/tools/qsharedpointer.h +++ b/src/corelib/tools/qsharedpointer.h @@ -108,11 +108,11 @@ public: ~QWeakPointer(); - QWeakPointer operator=(const QWeakPointer &other); - QWeakPointer operator=(const QSharedPointer &other); + QWeakPointer &operator=(const QWeakPointer &other); + QWeakPointer &operator=(const QSharedPointer &other); QWeakPointer(const QObject *other); - QWeakPointer operator=(const QObject *other); + QWeakPointer &operator=(const QObject *other); void swap(QWeakPointer &other); -- cgit v1.2.3