Diffusion KWin 9002f9b99eac

Remove usage of QWeakPointer for QObject

Authored by gladhorn on Aug 10 2019, 7:57 AM.

Description

Remove usage of QWeakPointer for QObject

This usage of QWeakPointer has been deprecated since Qt 5.0, since it
leads to really confusing API - usually you must never dereference a
QWeakPointer directly, but always go through QSharedPointer, except in
this one case, where it's permissible.

Use QPointer instead, which is clean.
Only keep the QPointer where the object in question may get deleted,
while in the API where it has to be valid, use a regular pointer.

Initializing the pointer explicitly to nullptr makes no sense.

Details

Committed
gladhornAug 10 2019, 9:18 AM
Parents
R108:8f5b781a3307: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown