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

@ -77,7 +77,7 @@ void FlamePackExportTask::collectFiles()
resolvedFiles.clear();
m_options.instance->loaderModList()->update();
connect(m_options.instance->loaderModList().get(), &ModFolderModel::updateFinished, this, &FlamePackExportTask::collectHashes);
connect(m_options.instance->loaderModList(), &ModFolderModel::updateFinished, this, &FlamePackExportTask::collectHashes);
}
void FlamePackExportTask::collectHashes()
@ -174,7 +174,7 @@ void FlamePackExportTask::makeApiRequest()
fingerprints.push_back(murmur.toUInt());
}
task.reset(api.matchFingerprints(fingerprints, response));
task.reset(api.matchFingerprints(fingerprints, response.get()));
connect(task.get(), &Task::succeeded, this, [this, response] {
QJsonParseError parseError{};
@ -252,9 +252,9 @@ void FlamePackExportTask::getProjectsInfo()
buildZip();
return;
} else if (addonIds.size() == 1) {
projTask = api.getProject(*addonIds.begin(), response);
projTask = api.getProject(*addonIds.begin(), response.get());
} else {
projTask = api.getProjects(addonIds, response);
projTask = api.getProjects(addonIds, response.get());
}
connect(projTask.get(), &Task::succeeded, this, [this, response, addonIds] {