Commit 9f73d64f authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #28351: numbercleaner: use range-based for loops

parent 284d1ff0
......@@ -37,9 +37,8 @@
namespace {
void strip_chars(const std::string &to_strip, std::string &num)
for (std::string::const_iterator iter = to_strip.begin();
iter != to_strip.end(); ++iter)
num.erase(std::remove(num.begin(), num.end(), *iter), num.end());
for (const auto &iter : to_strip)
num.erase(std::remove(num.begin(), num.end(), iter), num.end());
Supports Markdown
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