diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-31 08:14:41 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-31 08:14:41 +0100 |
| commit | de4f3ac8e48e4687227ec23381b83db534702089 (patch) | |
| tree | 7a53aad798ebb421a56cde8f36224aafb9186685 /include/ocl/tproc/rope.hpp | |
| parent | bc277f70e683afea8b571b77b03976b141a8be2b (diff) | |
chore: don't use return value of std::transform.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/ocl/tproc/rope.hpp')
| -rw-r--r-- | include/ocl/tproc/rope.hpp | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/include/ocl/tproc/rope.hpp b/include/ocl/tproc/rope.hpp index e0a41b6..5842f01 100644 --- a/include/ocl/tproc/rope.hpp +++ b/include/ocl/tproc/rope.hpp @@ -25,7 +25,7 @@ namespace ocl::tproc::rope template <typename It> It operator()(It rbegin, It rend) - { + { for (auto rbeg{rbegin}; rbegin != rend; ++rbeg) { if (*rbeg == cond_) @@ -49,9 +49,11 @@ namespace ocl::tproc::rope template <typename It> It operator()(It begin, It end) { - auto cmp = std::transform(cond_.begin(), cond_.end(), [](std::string::char_type& ch) { - return std::toupper(ch); - }); + std::transform(cond_.begin(), + cond_.end(), + [](std::string::char_type& ch) { + return std::toupper(ch); + }); for (auto beg{begin}; begin != end; ++beg) { @@ -76,9 +78,11 @@ namespace ocl::tproc::rope template <typename It> It operator()(It begin, It end) { - auto cmp = std::transform(cond_.begin(), cond_.end(), [](std::string::char_type& ch) { - return std::tolower(ch); - }); + std::transform(cond_.begin(), + cond_.end(), + [](std::string::char_type& ch) { + return std::tolower(ch); + }); for (auto beg{begin}; begin != end; ++beg) { @@ -102,7 +106,7 @@ namespace ocl::tproc::rope template <typename It> It operator()(It begin, It end) - { + { for (auto beg{begin}; begin != end; ++beg) { if (*beg == cond_) @@ -124,7 +128,10 @@ namespace ocl::tproc::rope } template <typename It> - It operator()(It begin, It end) { return end; } + It operator()(It begin, It end) + { + return end; + } }; } // namespace ocl::tproc::rope |
