No need to pass Application to RadioBackend

This commit is contained in:
Jonas Kvinge
2021-07-11 01:12:50 +02:00
parent d8f0ae0980
commit dbf18db3a3
3 changed files with 3 additions and 7 deletions

View File

@@ -24,14 +24,13 @@
#include "radiochannel.h"
class Application;
class Database;
class RadioBackend : public QObject {
Q_OBJECT
public:
explicit RadioBackend(Application *app, Database *db, QObject *parent = nullptr);
explicit RadioBackend(Database *db, QObject *parent = nullptr);
void Close();
void ExitAsync();
@@ -53,7 +52,6 @@ class RadioBackend : public QObject {
void Exit();
private:
Application *app_;
Database *db_;
QThread *original_thread_;
};