summaryrefslogtreecommitdiff
path: root/src/processrunner.cpp
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/processrunner.cpp
parent717b5ac389ea15350d32f813a3f03d908de0ab06 (diff)
Change IOrganizer::profile return type to a shared_ptr (#2322)
Diffstat (limited to 'src/processrunner.cpp')
-rw-r--r--src/processrunner.cpp6
1 files changed, 3 insertions, 3 deletions
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::Results> 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"));
}