From 3418a33a87cba1ed5cedc7de35e799cddb546d4f Mon Sep 17 00:00:00 2001 From: Treeston Date: Wed, 18 Jul 2018 17:48:15 +0200 Subject: Misc: Pass std::chrono types by value everywhere. (cherry picked from commit 2ef9d301f0869b443122e2ba543af054c5b0e53c) --- src/server/game/Server/WorldSession.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/game/Server') diff --git a/src/server/game/Server/WorldSession.cpp b/src/server/game/Server/WorldSession.cpp index 628c455a0fc..328f2c394d6 100644 --- a/src/server/game/Server/WorldSession.cpp +++ b/src/server/game/Server/WorldSession.cpp @@ -893,13 +893,13 @@ void WorldSession::ProcessQueryCallbacks() _queryProcessor.ProcessReadyCallbacks(); _transactionCallbacks.ProcessReadyCallbacks(); - if (_realmAccountLoginCallback.valid() && _realmAccountLoginCallback.wait_for(std::chrono::seconds(0)) == std::future_status::ready && - _accountLoginCallback.valid() && _accountLoginCallback.wait_for(std::chrono::seconds(0)) == std::future_status::ready) + if (_realmAccountLoginCallback.valid() && _realmAccountLoginCallback.wait_for(0s) == std::future_status::ready && + _accountLoginCallback.valid() && _accountLoginCallback.wait_for(0s) == std::future_status::ready) InitializeSessionCallback(static_cast(_realmAccountLoginCallback.get()), static_cast(_accountLoginCallback.get())); //! HandlePlayerLoginOpcode - if (_charLoginCallback.valid() && _charLoginCallback.wait_for(std::chrono::seconds(0)) == std::future_status::ready) + if (_charLoginCallback.valid() && _charLoginCallback.wait_for(0s) == std::future_status::ready) HandlePlayerLogin(reinterpret_cast(_charLoginCallback.get())); if (_charEnumCallback.valid() && _charEnumCallback.wait_for(std::chrono::seconds(0)) == std::future_status::ready) -- cgit v1.2.3