Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
9f73d64f
Commit
9f73d64f
authored
Aug 13, 2013
by
Tristan Matthews
Browse files
* #28351: numbercleaner: use range-based for loops
parent
284d1ff0
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemon/src/numbercleaner.cpp
View file @
9f73d64f
...
...
@@ -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
());
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment