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/processrunner.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/processrunner.cpp') diff --git a/src/processrunner.cpp b/src/processrunner.cpp index 65e44598..3fb3b9d6 100644 --- a/src/processrunner.cpp +++ b/src/processrunner.cpp @@ -544,7 +544,7 @@ ProcessRunner& ProcessRunner::setFromFile(QWidget* parent, const QFileInfo& targ ProcessRunner& ProcessRunner::setFromExecutable(const Executable& exe) { - const auto* profile = m_core.currentProfile(); + const auto profile = m_core.currentProfile(); if (!profile) { throw MyException(QObject::tr("No profile set")); } @@ -611,7 +611,7 @@ ProcessRunner& ProcessRunner::setFromFileOrExecutable( const QString& profileOverride, const QString& forcedCustomOverwrite, bool ignoreCustomOverwrite) { - const auto* profile = m_core.currentProfile(); + const auto profile = m_core.currentProfile(); if (!profile) { throw MyException(QObject::tr("No profile set")); } @@ -757,7 +757,7 @@ std::optional ProcessRunner::runBinary() { if (m_profileName.isEmpty()) { // get the current profile name if it wasn't overridden - const auto* profile = m_core.currentProfile(); + const auto profile = m_core.currentProfile(); if (!profile) { throw MyException(QObject::tr("No profile set")); } -- cgit v1.3.1