mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Tidying up around QPointer guards.
This commit is contained in:
committed by
Klaus Basan
parent
3d935485dd
commit
61d933be12
@@ -475,7 +475,7 @@ namespace BlackCore
|
||||
if (ms > 10)
|
||||
{
|
||||
// As of https://dev.swift-project.org/T558 play additional notification
|
||||
const QPointer<CContextAudio> myself(const_cast<CContextAudio *>(this)); //! \fixme KB 2019-03 add bit hacky as I need non-const and do not want to change all signatures
|
||||
const QPointer<const CContextAudio> myself(this);
|
||||
QTimer::singleShot(ms, this, [ = ]
|
||||
{
|
||||
if (!sApp || sApp->isShuttingDown() || !myself) { return; }
|
||||
|
||||
Reference in New Issue
Block a user