forked from qt-creator/qt-creator
CommandLine: Use more 1-arg c'tor
Change-Id: If52c4094f94859d51e31862d913b1756e333e512 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -168,7 +168,7 @@ QList<ShellModelItem> ShellModel::remote() const
|
||||
ProjectExplorer::DeviceManager::instance()->forEachDevice(
|
||||
[&result](const std::shared_ptr<const ProjectExplorer::IDevice> &device) {
|
||||
if (device->type() != ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE)
|
||||
result << ShellModelItem{device->displayName(), {{device->rootPath(), {}}}};
|
||||
result << ShellModelItem{device->displayName(), {CommandLine{device->rootPath()}}};
|
||||
});
|
||||
|
||||
return result;
|
||||
|
||||
@@ -115,7 +115,7 @@ void TerminalPane::openTerminal(const OpenTerminalParameters ¶meters)
|
||||
if (!shell.isExecutableFile())
|
||||
parametersCopy.workingDirectory.reset();
|
||||
else
|
||||
parametersCopy.shellCommand = CommandLine{shell, {}};
|
||||
parametersCopy.shellCommand = CommandLine{shell};
|
||||
}
|
||||
|
||||
const auto terminalWidget = new TerminalWidget(&m_tabWidget, parametersCopy);
|
||||
|
||||
Reference in New Issue
Block a user