chore: DataDownloader, use default for deconstructor, add missing nullptr replacement

This commit is contained in:
sithlord48
2025-05-01 11:06:35 -04:00
committed by Nick Bolton
parent 9085468d1c
commit 6bcdd4ebe7
2 changed files with 2 additions and 6 deletions

View File

@ -11,10 +11,6 @@ DataDownloader::DataDownloader(QObject *parent) : QObject(parent), m_pReply(null
connect(&m_NetworkManager, &QNetworkAccessManager::finished, this, &DataDownloader::complete);
}
DataDownloader::~DataDownloader()
{
}
void DataDownloader::complete(QNetworkReply *reply)
{
m_Data = reply->readAll();

View File

@ -17,8 +17,8 @@ class DataDownloader : public QObject
Q_OBJECT
public:
explicit DataDownloader(QObject *parent = 0);
~DataDownloader() override;
explicit DataDownloader(QObject *parent = nullptr);
~DataDownloader() override = default;
QByteArray data() const;
void cancel();