Agent: Simplify and avoid unnecessary shared_ptr

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2026-01-14 19:27:20 +00:00
parent 77ebf65c7d
commit 248eb13ab9
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
8 changed files with 21 additions and 38 deletions

View file

@ -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());