diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-02-08 17:56:14 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-04-12 20:57:17 +0200 |
commit | 4730f54df7edf4775dfddf45f77c60edd86c32d9 (patch) | |
tree | 22fe05326976cbdadf150c1cfe0710f375e34edf /logic/forge | |
parent | 7a71ecd8af0454e405b25080a4b266fc99306269 (diff) | |
download | MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.tar MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.tar.gz MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.tar.lz MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.tar.xz MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.zip |
SCRATCH separate the generic updater logic from the application
Diffstat (limited to 'logic/forge')
-rw-r--r-- | logic/forge/ForgeMirrors.cpp | 2 | ||||
-rw-r--r-- | logic/forge/ForgeXzDownload.cpp | 2 |
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())); |