[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2024-03-22 01:50:46 +00:00 committed by GitHub
parent 48fc8fceff
commit 1724b4f32b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -73,7 +73,7 @@ void ExternalAudioPlayer::onViewerDestroyed( QObject * destroyedViewer )
}
}
else if ( viewer.get() == destroyedViewer )
viewer.reset(nullptr); // viewer finished and died -> reset
viewer.reset( nullptr ); // viewer finished and died -> reset
}
QString ExternalAudioPlayer::startViewer()

View file

@ -35,11 +35,11 @@ private:
struct QObjectDeleteLater
{
void operator()( QObject * p )
{
if ( p )
p->deleteLater();
}
void operator()( QObject * p )
{
if ( p )
p->deleteLater();
}
};
// deleteLater() is safer because viewer actively participates in the QEventLoop.
std::unique_ptr< ExternalViewer, QObjectDeleteLater > viewer;