Module: check_mk
Branch: master
Commit: 607ddf7a7b3bf329ad20081ad4f3345477e2f803
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=607ddf7a7b3bf3…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Mar 8 08:11:38 2016 +0100
Be consistent in how we use 'using'.
---
livestatus/src/waittriggers.cc | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/livestatus/src/waittriggers.cc b/livestatus/src/waittriggers.cc
index adc5cb5..62b4205 100644
--- a/livestatus/src/waittriggers.cc
+++ b/livestatus/src/waittriggers.cc
@@ -29,7 +29,9 @@
#include <mutex>
#include <ratio>
+using std::chrono::milliseconds;
using std::condition_variable;
+using std::cv_status;
using std::mutex;
using std::unique_lock;
@@ -131,7 +133,6 @@ void trigger_wait(struct trigger *which) {
int trigger_wait_for(struct trigger *which, unsigned ms) {
unique_lock<mutex> ul(g_wait_mutex);
- return static_cast<int>(
- from_trigger(which)->wait_for(ul, std::chrono::milliseconds(ms)) ==
- std::cv_status::no_timeout);
+ return static_cast<int>(from_trigger(which)->wait_for(
+ ul, milliseconds(ms)) == cv_status::no_timeout);
}