Misc: Pass std::chrono types by value everywhere.

(cherry picked from commit 2ef9d301f0)
This commit is contained in:
Treeston
2018-07-18 17:48:15 +02:00
committed by Shauren
parent ab5792a33a
commit 3418a33a87
21 changed files with 39 additions and 38 deletions

View File

@@ -41,6 +41,7 @@ ScriptReloadMgr* ScriptReloadMgr::instance()
#include "Config.h"
#include "GitRevision.h"
#include "CryptoHash.h"
#include "Duration.h"
#include "Log.h"
#include "MPSCQueue.h"
#include "Regex.h"
@@ -1035,7 +1036,7 @@ private:
// Wait for the current build job to finish, if the job finishes in time
// evaluate it and continue with the next one.
if (_build_job->GetProcess()->GetFutureResult().
wait_for(std::chrono::seconds(0)) == std::future_status::ready)
wait_for(0s) == std::future_status::ready)
ProcessReadyBuildJob();
else
return; // Return when the job didn't finish in time