forked from qt-creator/qt-creator
ProjectExplorer: Use CommandLine instead of Runnable
Lighter and sufficient for all use cases. Change-Id: Ic6749a1a9e3e6906ce71b87b237cc94a6d8a4cbf Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -58,12 +58,10 @@ class QnxPortsGatheringMethod : public PortsGatheringMethod
|
||||
{
|
||||
// TODO: The command is probably needlessly complicated because the parsing method
|
||||
// used to be fixed. These two can now be matched to each other.
|
||||
Runnable runnable(QAbstractSocket::NetworkLayerProtocol protocol) const override
|
||||
CommandLine commandLine(QAbstractSocket::NetworkLayerProtocol protocol) const override
|
||||
{
|
||||
Q_UNUSED(protocol)
|
||||
Runnable runnable;
|
||||
runnable.command = {"netstat", {"-na"}};
|
||||
return runnable;
|
||||
return {"netstat", {"-na"}};
|
||||
}
|
||||
|
||||
QList<Port> usedPorts(const QByteArray &output) const override
|
||||
|
||||
Reference in New Issue
Block a user