summaryrefslogtreecommitdiffhomepage
path: root/include/ocl/tproc/rope.hpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-31 08:14:41 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-31 08:14:41 +0100
commitde4f3ac8e48e4687227ec23381b83db534702089 (patch)
tree7a53aad798ebb421a56cde8f36224aafb9186685 /include/ocl/tproc/rope.hpp
parentbc277f70e683afea8b571b77b03976b141a8be2b (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.hpp25
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