diff options
| author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-01-23 08:52:23 +0100 |
|---|---|---|
| committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-01-23 09:32:43 +0000 |
| commit | 10ff747a0f30f4d6787e4d84550bd77f159d98b6 (patch) | |
| tree | b9ab2208268a6914bf196838a4ca8b49f226362d /src/plugins/python/pythonutils.cpp | |
| parent | 9e73dc1f097d933a9978368f95f75196968a942b (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/pythonutils.cpp')
| -rw-r--r-- | src/plugins/python/pythonutils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp index d355800e0a4..2ecfe495bcd 100644 --- a/src/plugins/python/pythonutils.cpp +++ b/src/plugins/python/pythonutils.cpp @@ -149,7 +149,8 @@ QString pythonName(const FilePath &pythonPath) if (name.isEmpty()) { Process pythonProcess; pythonProcess.setCommand({pythonPath, {"--version"}}); - pythonProcess.runBlocking(std::chrono::seconds(2)); + using namespace std::chrono_literals; + pythonProcess.runBlocking(2s); if (pythonProcess.result() != ProcessResult::FinishedWithSuccess) return {}; name = pythonProcess.allOutput().trimmed(); |
