diff options
author | Jarek Kobus <[email protected]> | 2024-05-16 12:31:24 +0200 |
---|---|---|
committer | Jarek Kobus <[email protected]> | 2024-05-16 12:45:42 +0000 |
commit | 53de9701f45adfd77e6fd39725d3ce5135ce5b3e (patch) | |
tree | 276271b9e13c42b52dbfd51a169821b87c4ea8be /src/libs/utils/terminalinterface.cpp | |
parent | 34f4ec11bd2cf430146340b8a2d4a3db6abe4866 (diff) |
CommandLine: Use more 1-arg c'tor
Change-Id: If52c4094f94859d51e31862d913b1756e333e512
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/libs/utils/terminalinterface.cpp')
-rw-r--r-- | src/libs/utils/terminalinterface.cpp | 2 |
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 { |