summaryrefslogtreecommitdiff
path: root/src/processrunner.cpp
diff options
context:
space:
mode:
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"));
}