From aa44561e86b6520ee0ab10a58db52b6fdd77d991 Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Sun, 11 Jan 2026 17:31:26 +0100 Subject: Change IOrganizer::profile return type to a shared_ptr (#2322) --- src/organizercore.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/organizercore.h') 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 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 m_CurrentProfile; + std::shared_ptr m_CurrentProfile; Settings& m_Settings; -- cgit v1.3.1