aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2023-01-26 10:15:28 -0800
committerGitHub <noreply@github.com>2023-01-26 10:15:28 -0800
commitf705cf09bce828ea2f8bae918673c1d921713866 (patch)
treeb41112786d7bb3bd10813034157c3c1373f3ae57 /launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp
parent9b7c8ea22d367f31ff9537fb69aa4dbc5f417668 (diff)
parent29f7ea752fd34bdea64a7c7f2c505982ac39ce0d (diff)
downloadPrismLauncher-f705cf09bce828ea2f8bae918673c1d921713866.tar.gz
PrismLauncher-f705cf09bce828ea2f8bae918673c1d921713866.tar.bz2
PrismLauncher-f705cf09bce828ea2f8bae918673c1d921713866.zip
Merge pull request #787 from flowln/make_shared_ptrs_explicit
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp')
-rw-r--r--launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp b/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp
index daca68d7..d1be7209 100644
--- a/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp
+++ b/launcher/modplatform/modrinth/ModrinthCheckUpdate.cpp
@@ -159,7 +159,7 @@ void ModrinthCheckUpdate::executeTask()
pack.description = mod->description();
pack.provider = ModPlatform::ResourceProvider::MODRINTH;
- auto download_task = new ResourceDownloadTask(pack, project_ver, m_mods_folder);
+ auto download_task = makeShared<ResourceDownloadTask>(pack, project_ver, m_mods_folder);
m_updatable.emplace_back(pack.name, hash, mod->version(), project_ver.version_number, project_ver.changelog,
ModPlatform::ResourceProvider::MODRINTH, download_task);