Commit 6ae99fbe authored by Julien Osman's avatar Julien Osman Committed by Laurențiu Nicola
Browse files

COMP: remove unused lambda capture

parent 74e56316
Pipeline #7373 passed with stages
in 238 minutes and 20 seconds
......@@ -27,7 +27,7 @@ string_view lstrip(string_view const& v, string_view const& c )
{
string_view::const_iterator pos = std::find_if(
v.cbegin(), v.cend(),
[&v, &c](char in) -> bool {return std::find(c.cbegin(),c.cend(),in) == c.cend();});
[&c](char in) -> bool {return std::find(c.cbegin(),c.cend(),in) == c.cend();});
// Beware: returned string_view may be empty
return string_view(pos, v.cend());
......@@ -37,7 +37,7 @@ string_view rstrip(string_view const& v, string_view const& c )
{
string_view::const_reverse_iterator pos = std::find_if(
v.crbegin(), v.crend(),
[&v, &c](char in) -> bool {return std::find(c.cbegin(),c.cend(),in) == c.cend();});
[&c](char in) -> bool {return std::find(c.cbegin(),c.cend(),in) == c.cend();});
// Beware: returned string_view may be empty
return string_view(v.cbegin(), &*pos - &(*v.cbegin()) + 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment