Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Mar 22, 2024
1 parent d85940b commit c45e9eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/externalaudioplayer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
10 changes: 5 additions & 5 deletions src/externalaudioplayer.hh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,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;
Expand Down

0 comments on commit c45e9eb

Please sign in to comment.