refactor: Fix clang-tidy warnings

This commit is contained in:
Lars Toenning
2024-12-01 11:04:25 +01:00
parent 7bc99ff6f2
commit a43b5ddc2b
38 changed files with 184 additions and 207 deletions

View File

@@ -43,11 +43,11 @@ namespace swift::misc
CRegularThread(QObject *parent = nullptr) : QThread(parent) {}
//! Destructor
virtual ~CRegularThread() override;
~CRegularThread() override;
protected:
//! \copydoc QThread::run
virtual void run() override;
void run() override;
private:
std::atomic<void *> m_handle { nullptr };
@@ -148,7 +148,7 @@ namespace swift::misc
CWorkerBase();
//! Destructor.
virtual ~CWorkerBase() override;
~CWorkerBase() override;
//! For the task to check whether it can finish early.
//! \threadsafe
@@ -289,11 +289,11 @@ namespace swift::misc
//! Stops the thread the next time around its event loop.
//! The thread and the worker will then be deleted.
//! \threadsafe
virtual void quit() noexcept final override;
void quit() noexcept final;
//! Calls quit() and blocks until the thread is finished.
//! \threadsafe Will deadlock if called by the worker thread.
virtual void quitAndWait() noexcept final override;
void quitAndWait() noexcept final;
//! Enabled (running)?
//! \threadsafe