Application: Use shared pointers

Fixes #1239
This commit is contained in:
Jonas Kvinge
2023-07-21 05:55:24 +02:00
parent d6b53f78ab
commit 2e61235403
316 changed files with 2170 additions and 1643 deletions

View File

@@ -30,6 +30,7 @@
#include <QIcon>
#include <QJsonObject>
#include "core/shared_ptr.h"
#include "core/song.h"
#include "radiochannel.h"
@@ -42,7 +43,7 @@ class RadioService : public QObject {
Q_OBJECT
public:
explicit RadioService(const Song::Source source, const QString &name, const QIcon &icon, Application *app, NetworkAccessManager *network, QObject *parent = nullptr);
explicit RadioService(const Song::Source source, const QString &name, const QIcon &icon, Application *app, SharedPtr<NetworkAccessManager> network, QObject *parent = nullptr);
Song::Source source() const { return source_; }
QString name() const { return name_; }
@@ -66,7 +67,7 @@ class RadioService : public QObject {
protected:
Application *app_;
NetworkAccessManager *network_;
SharedPtr<NetworkAccessManager> network_;
Song::Source source_;
QString name_;
QIcon icon_;