summaryrefslogtreecommitdiff
path: root/src/organizercore.h
diff options
context:
space:
mode:
authorJonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com>2026-01-11 17:31:26 +0100
committerGitHub <noreply@github.com>2026-01-11 17:31:26 +0100
commitaa44561e86b6520ee0ab10a58db52b6fdd77d991 (patch)
tree0437239c99bb71d08b74bd590aee7cd019a412d1 /src/organizercore.h
parent717b5ac389ea15350d32f813a3f03d908de0ab06 (diff)
Change IOrganizer::profile return type to a shared_ptr (#2322)
Diffstat (limited to 'src/organizercore.h')
-rw-r--r--src/organizercore.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/organizercore.h b/src/organizercore.h
index 22c4f19a..80f340b6 100644
--- a/src/organizercore.h
+++ b/src/organizercore.h
@@ -270,7 +270,8 @@ public:
m_ExecutablesList = executablesList;
}
- Profile* currentProfile() const { return m_CurrentProfile.get(); }
+ std::shared_ptr<Profile> currentProfile() const { return m_CurrentProfile; }
+
void setCurrentProfile(const QString& profileName);
QStringList profileNames() const;
@@ -540,7 +541,7 @@ private:
MOBase::IPluginGame* m_GamePlugin;
ModDataContentHolder m_Contents;
- std::unique_ptr<Profile> m_CurrentProfile;
+ std::shared_ptr<Profile> m_CurrentProfile;
Settings& m_Settings;