aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythonlanguageclient.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2024-01-23 08:52:23 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2024-01-23 09:32:43 +0000
commit10ff747a0f30f4d6787e4d84550bd77f159d98b6 (patch)
treeb9ab2208268a6914bf196838a4ca8b49f226362d /src/plugins/python/pythonlanguageclient.cpp
parent9e73dc1f097d933a9978368f95f75196968a942b (diff)
Use more std::chrono and std::chrono_literals namespaces
Change-Id: Ib8c83988d7afe35d81b87ff8c5c87eef2082f12d Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/python/pythonlanguageclient.cpp')
-rw-r--r--src/plugins/python/pythonlanguageclient.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp
index ab3cf170730..c4eb0290748 100644
--- a/src/plugins/python/pythonlanguageclient.cpp
+++ b/src/plugins/python/pythonlanguageclient.cpp
@@ -86,7 +86,8 @@ static PythonLanguageServerState checkPythonLanguageServer(const FilePath &pytho
Process pythonProcess;
pythonProcess.setCommand({python, {"-m", "pip", "-V"}});
- pythonProcess.runBlocking(std::chrono::seconds(2));
+ using namespace std::chrono_literals;
+ pythonProcess.runBlocking(2s);
if (pythonProcess.allOutput().startsWith("pip "))
return {PythonLanguageServerState::CanBeInstalled, lspPath};
return {PythonLanguageServerState::CanNotBeInstalled, FilePath()};