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);