diff options
author | Petr Mrázek <peterix@gmail.com> | 2021-11-21 23:36:55 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-11-21 23:36:55 +0100 |
commit | 9fc677c2a4259c8b8421d0fd207770e8f524a09c (patch) | |
tree | 1e77aa4a073e6fc4958d6365fb02be4c49441ba4 /launcher/meta | |
parent | 69213b1206e97f7d4db4270a4b3b0af41dc9e6fc (diff) | |
download | PrismLauncher-9fc677c2a4259c8b8421d0fd207770e8f524a09c.tar.gz PrismLauncher-9fc677c2a4259c8b8421d0fd207770e8f524a09c.tar.bz2 PrismLauncher-9fc677c2a4259c8b8421d0fd207770e8f524a09c.zip |
NOISSUE more refactoring
Diffstat (limited to 'launcher/meta')
-rw-r--r-- | launcher/meta/BaseEntity.cpp | 2 | ||||
-rw-r--r-- | launcher/meta/VersionList.cpp | 2 | ||||
-rw-r--r-- | launcher/meta/VersionList.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/launcher/meta/BaseEntity.cpp b/launcher/meta/BaseEntity.cpp index 9aa4a3dd..a9d62fcd 100644 --- a/launcher/meta/BaseEntity.cpp +++ b/launcher/meta/BaseEntity.cpp @@ -154,7 +154,7 @@ bool Meta::BaseEntity::shouldStartRemoteUpdate() const return m_updateStatus != UpdateStatus::InProgress; } -shared_qobject_ptr<Task> Meta::BaseEntity::getCurrentTask() +Task::Ptr Meta::BaseEntity::getCurrentTask() { if(m_updateStatus == UpdateStatus::InProgress) { diff --git a/launcher/meta/VersionList.cpp b/launcher/meta/VersionList.cpp index 607007eb..6d23ce9a 100644 --- a/launcher/meta/VersionList.cpp +++ b/launcher/meta/VersionList.cpp @@ -29,7 +29,7 @@ VersionList::VersionList(const QString &uid, QObject *parent) setObjectName("Version list: " + uid); } -shared_qobject_ptr<Task> VersionList::getLoadTask() +Task::Ptr VersionList::getLoadTask() { load(Net::Mode::Online); return getCurrentTask(); diff --git a/launcher/meta/VersionList.h b/launcher/meta/VersionList.h index 58cdafe7..378255df 100644 --- a/launcher/meta/VersionList.h +++ b/launcher/meta/VersionList.h @@ -41,7 +41,7 @@ public: VersionPtrRole }; - shared_qobject_ptr<Task> getLoadTask() override; + Task::Ptr getLoadTask() override; bool isLoaded() override; const BaseVersionPtr at(int i) const override; int count() const override; |