summaryrefslogtreecommitdiffstats
path: root/logic/forge
diff options
context:
space:
mode:
Diffstat (limited to 'logic/forge')
-rw-r--r--logic/forge/ForgeMirrors.cpp2
-rw-r--r--logic/forge/ForgeXzDownload.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/logic/forge/ForgeMirrors.cpp b/logic/forge/ForgeMirrors.cpp
index 06abb88f..e922fcc3 100644
--- a/logic/forge/ForgeMirrors.cpp
+++ b/logic/forge/ForgeMirrors.cpp
@@ -21,7 +21,7 @@ void ForgeMirrors::start()
auto worker = ENV.qnam();
QNetworkReply *rep = worker->get(request);
- m_reply = std::shared_ptr<QNetworkReply>(rep);
+ m_reply.reset(rep);
connect(rep, SIGNAL(downloadProgress(qint64, qint64)),
SLOT(downloadProgress(qint64, qint64)));
connect(rep, SIGNAL(finished()), SLOT(downloadFinished()));
diff --git a/logic/forge/ForgeXzDownload.cpp b/logic/forge/ForgeXzDownload.cpp
index ac2c4b1f..65b20959 100644
--- a/logic/forge/ForgeXzDownload.cpp
+++ b/logic/forge/ForgeXzDownload.cpp
@@ -70,7 +70,7 @@ void ForgeXzDownload::start()
auto worker = ENV.qnam();
QNetworkReply *rep = worker->get(request);
- m_reply = std::shared_ptr<QNetworkReply>(rep);
+ m_reply.reset(rep);
connect(rep, SIGNAL(downloadProgress(qint64, qint64)),
SLOT(downloadProgress(qint64, qint64)));
connect(rep, SIGNAL(finished()), SLOT(downloadFinished()));