mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +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
|
|
@ -213,9 +213,9 @@ void LaunchProfile::applyMavenFile(LibraryPtr mavenFile, const RuntimeContext& r
|
|||
m_mavenFiles.append(Library::limitedCopy(mavenFile));
|
||||
}
|
||||
|
||||
void LaunchProfile::applyAgent(AgentPtr agent, const RuntimeContext& runtimeContext)
|
||||
void LaunchProfile::applyAgent(const Agent& agent, const RuntimeContext& runtimeContext)
|
||||
{
|
||||
auto lib = agent->library();
|
||||
auto lib = agent.library;
|
||||
if (!lib->isActive(runtimeContext)) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -330,7 +330,7 @@ const QList<LibraryPtr>& LaunchProfile::getMavenFiles() const
|
|||
return m_mavenFiles;
|
||||
}
|
||||
|
||||
const QList<AgentPtr>& LaunchProfile::getAgents() const
|
||||
const QList<Agent>& LaunchProfile::getAgents() const
|
||||
{
|
||||
return m_agents;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue