Update emitter.hpp

This commit is contained in:
Michele Caini 2017-01-18 18:30:16 +01:00 committed by GitHub
parent 8bd65303e2
commit d8c94e8b3d

View File

@ -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: