mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-07 05:46:58 +03:00
Agent: Simplify and avoid unnecessary shared_ptr
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
77ebf65c7d
commit
248eb13ab9
8 changed files with 21 additions and 38 deletions
|
|
@ -44,8 +44,8 @@ void LibrariesTask::executeTask()
|
|||
libArtifactPool.append(profile->getLibraries());
|
||||
libArtifactPool.append(profile->getNativeLibraries());
|
||||
libArtifactPool.append(profile->getMavenFiles());
|
||||
for (auto agent : profile->getAgents()) {
|
||||
libArtifactPool.append(agent->library());
|
||||
for (const auto& agent : profile->getAgents()) {
|
||||
libArtifactPool.append(agent.library);
|
||||
}
|
||||
libArtifactPool.append(profile->getMainJar());
|
||||
processArtifactPool(libArtifactPool, failedLocalLibraries, inst->getLocalLibraryPath());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue