From 9fc677c2a4259c8b8421d0fd207770e8f524a09c Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sun, 21 Nov 2021 23:36:55 +0100 Subject: NOISSUE more refactoring --- launcher/meta/BaseEntity.cpp | 2 +- launcher/meta/VersionList.cpp | 2 +- launcher/meta/VersionList.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'launcher/meta') 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 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 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 getLoadTask() override; + Task::Ptr getLoadTask() override; bool isLoaded() override; const BaseVersionPtr at(int i) const override; int count() const override; -- cgit