Replace assert with Q_ASSERT

This commit is contained in:
Jonas Kvinge
2021-09-27 19:09:18 +02:00
parent 35db157617
commit 62e53b53f0
8 changed files with 8 additions and 18 deletions

View File

@@ -21,8 +21,6 @@
#include "config.h"
#include <cassert>
#include <QObject>
#include <QThread>
#include <QMutex>
@@ -67,7 +65,7 @@ void DeviceDatabaseBackend::ExitAsync() {
void DeviceDatabaseBackend::Exit() {
assert(QThread::currentThread() == thread());
Q_ASSERT(QThread::currentThread() == thread());
Close();
moveToThread(original_thread_);
emit ExitFinished();