Use more std::chrono and std::chrono_literals namespaces

Change-Id: Ib8c83988d7afe35d81b87ff8c5c87eef2082f12d
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2024-01-23 08:52:23 +01:00
parent 9e73dc1f09
commit 10ff747a0f
42 changed files with 124 additions and 87 deletions

View File

@@ -599,7 +599,8 @@ QVector<AndroidDeviceInfo> AndroidConfig::connectedDevices(QString *error) const
Process adbProc;
CommandLine cmd{adbToolPath(), {"devices"}};
adbProc.setCommand(cmd);
adbProc.runBlocking(std::chrono::seconds(30));
using namespace std::chrono_literals;
adbProc.runBlocking(30s);
if (adbProc.result() != ProcessResult::FinishedWithSuccess) {
if (error)
*error = Tr::tr("Could not run: %1").arg(cmd.toUserOutput());