From d8c94e8b3d01c74daec5551592b9d180267d18d9 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 18 Jan 2017 18:30:16 +0100 Subject: [PATCH] Update emitter.hpp --- src/uvw/emitter.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uvw/emitter.hpp b/src/uvw/emitter.hpp index d922da2b..c75c041d 100644 --- a/src/uvw/emitter.hpp +++ b/src/uvw/emitter.hpp @@ -212,7 +212,7 @@ public: */ void clear() noexcept { std::for_each(handlers.begin(), handlers.end(), - [](auto &&_handler){ if(_handler) { _handler->clear(); } }); + [](auto &&hdlr){ if(hdlr) { hdlr->clear(); } }); } /** @@ -236,7 +236,7 @@ public: */ bool empty() const noexcept { return std::all_of(handlers.cbegin(), handlers.cend(), - [](auto &&_handler){ return !_handler || _handler->empty(); }); + [](auto &&hdlr){ return !hdlr || hdlr->empty(); }); } private: