From 26acde979fff28f290dafda1cb836ba8581bef6b Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 11 Jun 2021 11:54:22 +0200 Subject: [PATCH] refactor on the gui from review missed out in pr --- slsDetectorGui/src/qTabSettings.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slsDetectorGui/src/qTabSettings.cpp b/slsDetectorGui/src/qTabSettings.cpp index 81c7ad0e4..84fd53de8 100644 --- a/slsDetectorGui/src/qTabSettings.cpp +++ b/slsDetectorGui/src/qTabSettings.cpp @@ -361,8 +361,9 @@ void qTabSettings::GetCounterMask() { auto retval = sls::getSetBits(det->getCounterMask().tsquash( "Counter mask is inconsistent for all detectors.")); // default to unchecked - std::for_each(counters, [](auto &i) { i.setChecked(false); }); - // std::for_each(counters.begin(), counters.end(), ) + for (auto p : counters) { + p->setChecked(false); + } // if retval[i] = 2, chkCounter2 is checked for (auto i : retval) { if (i > 3) {