diff options
| author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-05-16 12:31:24 +0200 |
|---|---|---|
| committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-05-16 12:45:42 +0000 |
| commit | 53de9701f45adfd77e6fd39725d3ce5135ce5b3e (patch) | |
| tree | 276271b9e13c42b52dbfd51a169821b87c4ea8be /src/plugins/python/pythonlanguageclient.cpp | |
| parent | 34f4ec11bd2cf430146340b8a2d4a3db6abe4866 (diff) | |
CommandLine: Use more 1-arg c'tor
Change-Id: If52c4094f94859d51e31862d913b1756e333e512
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/python/pythonlanguageclient.cpp')
| -rw-r--r-- | src/plugins/python/pythonlanguageclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp index 2379ffb1a19..3c05b8f87ed 100644 --- a/src/plugins/python/pythonlanguageclient.cpp +++ b/src/plugins/python/pythonlanguageclient.cpp @@ -151,7 +151,7 @@ PyLSClient *clientForPython(const FilePath &python) if (auto client = pythonClients()[python]) return client; auto interface = new PyLSInterface; - interface->setCommandLine(CommandLine(python, {"-m", "pylsp"})); + interface->setCommandLine({python, {"-m", "pylsp"}}); auto client = new PyLSClient(interface); client->setName(Tr::tr("Python Language Server (%1)").arg(python.toUserOutput())); client->setActivateDocumentAutomatically(true); |
