use prefix ++ instead of postfix where available

This commit is contained in:
Andrzej Rybczak
2009-07-04 06:41:35 +02:00
parent 2eb913fe22
commit 9dab25e02c
26 changed files with 178 additions and 178 deletions

View File

@@ -41,7 +41,7 @@ namespace
bool has_non_ascii_chars(const char *s)
{
for (; s; s++)
for (; s; ++s)
if (char_non_ascii(*s))
return true;
return false;
@@ -49,7 +49,7 @@ namespace
bool has_non_ascii_chars(const std::string &s)
{
for (std::string::const_iterator it = s.begin(); it != s.end(); it++)
for (std::string::const_iterator it = s.begin(); it != s.end(); ++it)
if (char_non_ascii(*it))
return true;
return false;