X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftracegroup.cpp;h=5b59eab94e8d3c3851ebac36f9e01e795d78a707;hp=490f39c5457187a0c808cc32684abb25f8fcb3d9;hb=6f925ba9d6faf1077b73c5a5808259576081716a;hpb=00f6bae935837b38b0d03a5928ba8175d460413f diff --git a/pv/view/tracegroup.cpp b/pv/view/tracegroup.cpp index 490f39c..5b59eab 100644 --- a/pv/view/tracegroup.cpp +++ b/pv/view/tracegroup.cpp @@ -27,6 +27,7 @@ #include "tracegroup.hpp" +using std::any_of; using std::pair; using std::shared_ptr; using std::vector; @@ -48,7 +49,7 @@ TraceGroup::~TraceGroup() bool TraceGroup::enabled() const { - return std::any_of(child_items().begin(), child_items().end(), + return any_of(child_items().begin(), child_items().end(), [](const shared_ptr &r) { return r->enabled(); }); }