Skip to content

Commit 5ffd4c4

Browse files
committed
Introduce Worker::hasThread() replacing bool operator
1 parent 853e007 commit 5ffd4c4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/analyzer/trackanalysisscheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void TrackAnalysisScheduler::onWorkerThreadProgress(
228228
DEBUG_ASSERT(!trackId.isValid());
229229
DEBUG_ASSERT(analyzerProgress == kAnalyzerProgressUnknown);
230230
worker.onThreadExit();
231-
DEBUG_ASSERT(!worker);
231+
DEBUG_ASSERT(!worker.hasThread());
232232
break;
233233
default:
234234
DEBUG_ASSERT(!"Unhandled signal from worker thread");

src/analyzer/trackanalysisscheduler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class TrackAnalysisScheduler : public QObject {
8787
Worker(const Worker&) = delete;
8888
Worker(Worker&&) = default;
8989

90-
operator bool() const {
90+
bool hasThread() const {
9191
return static_cast<bool>(m_pThread);
9292
}
9393

0 commit comments

Comments
 (0)