forked from qt-creator/qt-creator
CommandLine: Reuse new c'tor
Change-Id: Id154881b4f5d8c488e5c1f5e0f843d36bf838759 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -83,7 +83,7 @@ void TerminalWidget::setupPty()
|
||||
{
|
||||
m_process = std::make_unique<Process>();
|
||||
|
||||
CommandLine shellCommand = m_openParameters.shellCommand.value_or(
|
||||
const CommandLine shellCommand = m_openParameters.shellCommand.value_or(
|
||||
CommandLine{settings().shell(), settings().shellArguments(), CommandLine::Raw});
|
||||
|
||||
if (shellCommand.executable().isRootPath()) {
|
||||
|
||||
Reference in New Issue
Block a user