forked from qt-creator/qt-creator
Use more std::chrono and std::chrono_literals namespaces
Change-Id: Ib8c83988d7afe35d81b87ff8c5c87eef2082f12d Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -222,7 +222,7 @@ static bool is32BitUserSpace()
|
||||
if (QSysInfo::WordSize == 32) {
|
||||
Process proc;
|
||||
proc.setCommand({"getconf", {"LONG_BIT"}});
|
||||
proc.runBlocking(std::chrono::seconds(3));
|
||||
proc.runBlocking(3s);
|
||||
if (proc.result() != ProcessResult::FinishedWithSuccess)
|
||||
return true;
|
||||
return proc.allOutput().trimmed() == "32";
|
||||
|
||||
Reference in New Issue
Block a user