From f2707c78c1920ef7cc24c0714f3ea772344e5b7f Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Sun, 11 Jan 2026 17:31:33 +0100 Subject: [PATCH] Change IOrganizer::profile return type to a shared_ptr (#23) --- src/inibakery.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inibakery.cpp b/src/inibakery.cpp index 9db4b2b..bb23492 100644 --- a/src/inibakery.cpp +++ b/src/inibakery.cpp @@ -66,12 +66,12 @@ bool IniBakery::prepareIni(const QString&) auto savegames = features->gameFeature(); if (savegames != nullptr) { - savegames->prepareProfile(m_MOInfo->profile()); + savegames->prepareProfile(m_MOInfo->profile().get()); } auto invalidation = features->gameFeature(); if (invalidation != nullptr) { - invalidation->prepareProfile(m_MOInfo->profile()); + invalidation->prepareProfile(m_MOInfo->profile().get()); } return true; @@ -83,7 +83,7 @@ MappingType IniBakery::mappings() const const IPluginGame* game = m_MOInfo->managedGame(); - IProfile* profile = m_MOInfo->profile(); + auto profile = m_MOInfo->profile(); if (profile->localSettingsEnabled()) { for (const QString& iniFile : iniFileNames()) {