mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
refactor!!!: migrate from shared pointers
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
c64d871a28
commit
549405ab2f
199 changed files with 742 additions and 709 deletions
|
|
@ -57,7 +57,7 @@ void Flame::FileResolvingTask::executeTask()
|
|||
for (auto file : m_manifest.files) {
|
||||
fileIds.push_back(QString::number(file.fileId));
|
||||
}
|
||||
m_task = flameAPI.getFiles(fileIds, m_result);
|
||||
m_task = flameAPI.getFiles(fileIds, m_result.get());
|
||||
|
||||
auto step_progress = std::make_shared<TaskStepProgress>();
|
||||
connect(m_task.get(), &Task::finished, this, [this, step_progress]() {
|
||||
|
|
@ -154,7 +154,7 @@ void Flame::FileResolvingTask::netJobFinished()
|
|||
return;
|
||||
}
|
||||
m_result.reset(new QByteArray());
|
||||
m_task = modrinthAPI.currentVersions(hashes, "sha1", m_result);
|
||||
m_task = modrinthAPI.currentVersions(hashes, "sha1", m_result.get());
|
||||
(dynamic_cast<NetJob*>(m_task.get()))->setAskRetry(false);
|
||||
auto step_progress = std::make_shared<TaskStepProgress>();
|
||||
connect(m_task.get(), &Task::finished, this, [this, step_progress]() {
|
||||
|
|
@ -227,7 +227,7 @@ void Flame::FileResolvingTask::getFlameProjects()
|
|||
addonIds.push_back(QString::number(file.projectId));
|
||||
}
|
||||
|
||||
m_task = flameAPI.getProjects(addonIds, m_result);
|
||||
m_task = flameAPI.getProjects(addonIds, m_result.get());
|
||||
|
||||
auto step_progress = std::make_shared<TaskStepProgress>();
|
||||
connect(m_task.get(), &Task::succeeded, this, [this, step_progress] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue