mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 02:20:00 +03:00
refactor!!!: migrate from shared pointers
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit 549405ab2f)
This commit is contained in:
parent
7755e0def9
commit
e89ce1124a
199 changed files with 742 additions and 710 deletions
|
|
@ -36,7 +36,7 @@ static std::list<Version> mcVersions(BaseInstance* inst)
|
|||
|
||||
ResourceUpdateDialog::ResourceUpdateDialog(QWidget* parent,
|
||||
BaseInstance* instance,
|
||||
const std::shared_ptr<ResourceFolderModel> resourceModel,
|
||||
ResourceFolderModel* resourceModel,
|
||||
QList<Resource*>& searchFor,
|
||||
bool includeDeps,
|
||||
QList<ModPlatform::ModLoaderType> loadersList)
|
||||
|
|
@ -188,7 +188,7 @@ void ResourceUpdateDialog::checkCandidates()
|
|||
}
|
||||
|
||||
if (m_includeDeps && !APPLICATION->settings()->get("ModDependenciesDisabled").toBool()) { // dependencies
|
||||
auto* mod_model = dynamic_cast<ModFolderModel*>(m_resourceModel.get());
|
||||
auto* mod_model = dynamic_cast<ModFolderModel*>(m_resourceModel);
|
||||
|
||||
if (mod_model != nullptr) {
|
||||
auto depTask = makeShared<GetModDependenciesTask>(m_instance, mod_model, selectedVers);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue