Change IOrganizer::profile return type to a shared_ptr (#23)

This commit is contained in:
Jonathan Feenstra
2026-01-11 17:31:33 +01:00
committed by GitHub
parent e761912dc2
commit f2707c78c1
+3 -3
View File
@@ -66,12 +66,12 @@ bool IniBakery::prepareIni(const QString&)
auto savegames = features->gameFeature<MOBase::LocalSavegames>();
if (savegames != nullptr) {
savegames->prepareProfile(m_MOInfo->profile());
savegames->prepareProfile(m_MOInfo->profile().get());
}
auto invalidation = features->gameFeature<BSAInvalidation>();
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()) {