From 19670fc751782d063fafd43c9be03ecc92572c6b Mon Sep 17 00:00:00 2001 From: Renaud Guezennec Date: Tue, 7 Oct 2025 00:10:02 +0200 Subject: Fix error and cpp style. --- src/libparser/validator.cpp | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'src/libparser/validator.cpp') diff --git a/src/libparser/validator.cpp b/src/libparser/validator.cpp index 201574b..a001b9e 100644 --- a/src/libparser/validator.cpp +++ b/src/libparser/validator.cpp @@ -28,13 +28,15 @@ template qint64 Validator::onEach(const std::vector& b, bool recursive, bool unlight, Functor functor) const { qint64 result= 0; - std::for_each(b.begin(), b.end(), [this, recursive, unlight, functor, &result](Die* die) { - if(hasValid(die, recursive, unlight)) - { - ++result; - functor(die, recursive, unlight); - } - }); + std::for_each(b.begin(), b.end(), + [this, recursive, unlight, functor, &result](Die* die) + { + if(hasValid(die, recursive, unlight)) + { + ++result; + functor(die, recursive, unlight); + } + }); return result; } @@ -42,13 +44,15 @@ template qint64 Validator::onEachValue(const std::vector& b, bool recursive, bool unlight, Functor functor) const { qint64 result= 0; - std::for_each(b.begin(), b.end(), [this, recursive, unlight, functor, &result](Die* die) { - if(hasValid(die, recursive, unlight)) - { - ++result; - functor(die, recursive, unlight); - } - }); + std::for_each(b.begin(), b.end(), + [this, recursive, unlight, functor, &result](Die* die) + { + if(hasValid(die, recursive, unlight)) + { + ++result; + functor(die, recursive, unlight); + } + }); return result; } -- cgit v1.2.3-70-g09d2