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:
@@ -690,7 +690,7 @@ void AndroidDeviceManager::setupDevicesWatcher()
|
||||
HandleDevicesListChange(output);
|
||||
});
|
||||
|
||||
const CommandLine command = CommandLine(androidConfig().adbToolPath(), {"track-devices"});
|
||||
const CommandLine command{androidConfig().adbToolPath(), {"track-devices"}};
|
||||
m_adbDeviceWatcherProcess->setCommand(command);
|
||||
m_adbDeviceWatcherProcess->setWorkingDirectory(command.executable().parentDir());
|
||||
m_adbDeviceWatcherProcess->setEnvironment(androidConfig().toolsEnvironment());
|
||||
|
||||
Reference in New Issue
Block a user