From 17c8f31a09da6bdfc4aa7f67b2ca86b791f2ba96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 4 Nov 2017 22:55:25 +0100 Subject: NOISSUE split out the LaunchProfile out of the ComponentList --- api/logic/minecraft/ProfilePatch.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'api/logic/minecraft/ProfilePatch.cpp') diff --git a/api/logic/minecraft/ProfilePatch.cpp b/api/logic/minecraft/ProfilePatch.cpp index b8b5c240..b7a5a37a 100644 --- a/api/logic/minecraft/ProfilePatch.cpp +++ b/api/logic/minecraft/ProfilePatch.cpp @@ -22,7 +22,7 @@ std::shared_ptr ProfilePatch::getMeta() return m_metaVersion; } -void ProfilePatch::applyTo(ComponentList* profile) +void ProfilePatch::applyTo(LaunchProfile* profile) { auto vfile = getVersionFile(); if(vfile) @@ -35,7 +35,7 @@ void ProfilePatch::applyTo(ComponentList* profile) } } -std::shared_ptr ProfilePatch::getVersionFile() +std::shared_ptr ProfilePatch::getVersionFile() const { if(m_metaVersion) { @@ -51,7 +51,7 @@ std::shared_ptr ProfilePatch::getVersionFile() } } -std::shared_ptr ProfilePatch::getVersionList() +std::shared_ptr ProfilePatch::getVersionList() const { if(m_metaVersion) { @@ -167,7 +167,7 @@ void ProfilePatch::setMovable (bool state) m_isMovable = state; } -ProblemSeverity ProfilePatch::getProblemSeverity() +ProblemSeverity ProfilePatch::getProblemSeverity() const { auto file = getVersionFile(); if(file) @@ -177,7 +177,7 @@ ProblemSeverity ProfilePatch::getProblemSeverity() return ProblemSeverity::Error; } -const QList ProfilePatch::getProblems() +const QList ProfilePatch::getProblems() const { auto file = getVersionFile(); if(file) -- cgit v1.2.3