refactor!!!: migrate from shared pointers

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit 549405ab2f)
This commit is contained in:
Octol1ttle 2026-01-07 19:16:54 +05:00 committed by Trial97
parent 7755e0def9
commit e89ce1124a
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
199 changed files with 742 additions and 710 deletions

View file

@ -66,7 +66,7 @@
#include "tasks/Task.h"
#include "ui/dialogs/ProgressDialog.h"
ModFolderPage::ModFolderPage(BaseInstance* inst, std::shared_ptr<ModFolderModel> model, QWidget* parent)
ModFolderPage::ModFolderPage(BaseInstance* inst, ModFolderModel* model, QWidget* parent)
: ExternalResourcesPage(inst, model, parent), m_model(model)
{
ui->actionDownloadItem->setText(tr("Download Mods"));
@ -341,7 +341,7 @@ void ModFolderPage::exportModMetadata()
dlg.exec();
}
CoreModFolderPage::CoreModFolderPage(BaseInstance* inst, std::shared_ptr<ModFolderModel> mods, QWidget* parent)
CoreModFolderPage::CoreModFolderPage(BaseInstance* inst, ModFolderModel* mods, QWidget* parent)
: ModFolderPage(inst, mods, parent)
{
auto mcInst = dynamic_cast<MinecraftInstance*>(m_instance);
@ -383,7 +383,7 @@ bool CoreModFolderPage::shouldDisplay() const
return false;
}
NilModFolderPage::NilModFolderPage(BaseInstance* inst, std::shared_ptr<ModFolderModel> mods, QWidget* parent)
NilModFolderPage::NilModFolderPage(BaseInstance* inst, ModFolderModel* mods, QWidget* parent)
: ModFolderPage(inst, mods, parent)
{}