forked from qt-creator/qt-creator
Utils: Drop OsType parameter from CommandLine functions
The type is implicitly given by the command's executble FilePath. Also, rename the rarely used addArgs(const CommandLine &) overload to addCommandLineAsArgs() and make it strip scheme and host from the wrapped executable as there are no uses expected where keeping them would be the right thing. Change-Id: Id0b76778e7e01ac16e477f36bf30bb28d96bb177 Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -58,7 +58,7 @@ RemoteLinuxQmlToolingSupport::RemoteLinuxQmlToolingSupport(RunControl *runContro
|
||||
QmlDebug::QmlDebugServicesPreset services = QmlDebug::servicesForRunMode(runControl->runMode());
|
||||
|
||||
Runnable r = runControl->runnable();
|
||||
r.command.addArg(QmlDebug::qmlDebugTcpArguments(services, serverUrl), OsTypeLinux);
|
||||
r.command.addArg(QmlDebug::qmlDebugTcpArguments(services, serverUrl));
|
||||
|
||||
doStart(r, runControl->device());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user