aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/terminalinterface.cpp
diff options
context:
space:
mode:
authorJarek Kobus <[email protected]>2024-05-16 12:31:24 +0200
committerJarek Kobus <[email protected]>2024-05-16 12:45:42 +0000
commit53de9701f45adfd77e6fd39725d3ce5135ce5b3e (patch)
tree276271b9e13c42b52dbfd51a169821b87c4ea8be /src/libs/utils/terminalinterface.cpp
parent34f4ec11bd2cf430146340b8a2d4a3db6abe4866 (diff)
CommandLine: Use more 1-arg c'tor
Diffstat (limited to 'src/libs/utils/terminalinterface.cpp')
-rw-r--r--src/libs/utils/terminalinterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/terminalinterface.cpp b/src/libs/utils/terminalinterface.cpp
index 0d5a3be0203..0cd7ceb1df8 100644
--- a/src/libs/utils/terminalinterface.cpp
+++ b/src/libs/utils/terminalinterface.cpp
@@ -402,7 +402,7 @@ void TerminalInterface::start()
m_setup.m_commandLine.executable().fileName());
if (m_setup.m_runAsRoot && !HostOsInfo::isWindowsHost()) {
- CommandLine rootCommand("sudo", {});
+ CommandLine rootCommand("sudo");
rootCommand.addCommandLineAsArgs(cmd);
stubSetupData.m_commandLine = rootCommand;
} else {