Tidying up around QPointer guards.

This commit is contained in:
Mat Sutcliffe
2019-04-29 19:47:05 +01:00
committed by Klaus Basan
parent 3d935485dd
commit 61d933be12
3 changed files with 6 additions and 11 deletions

View File

@@ -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; }