aboutsummaryrefslogtreecommitdiff
path: root/paludis/args/man.cc
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-08-04 21:57:23 -0700
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-08-04 22:11:01 -0700
commitf3cd2455110fad09158275287cbdaa67cc3e15c3 (patch)
treeb1922ea17b1401f0e86c6e3cdaf3a278dade4557 /paludis/args/man.cc
parente9ccc3a086f57507712a44ef2fadc34affa13af9 (diff)
downloadpaludis-f3cd2455110fad09158275287cbdaa67cc3e15c3.tar.gz
paludis-f3cd2455110fad09158275287cbdaa67cc3e15c3.tar.xz
modernize: convert to range based for-loops
Automated conversion to range based for loops. NFC
Diffstat (limited to 'paludis/args/man.cc')
-rw-r--r--paludis/args/man.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/args/man.cc b/paludis/args/man.cc
index ff1a4d451..c79632da7 100644
--- a/paludis/args/man.cc
+++ b/paludis/args/man.cc
@@ -194,7 +194,7 @@ namespace
void escape_asciidoc(std::ostream & stream, const std::string & s)
{
char previous('\0');
- for (auto t(s.begin()), t_end(s.end()) ; t != t_end ; ++t)
+ for (char t : s)
{
switch (previous)
{
@@ -203,13 +203,13 @@ namespace
case '\n':
case '\t':
case '\'':
- if ('*' == *t)
+ if ('*' == t)
stream << '\\';
break;
// Escape '*/*' -> '\*/*'
}
- stream << *t;
- previous = *t;
+ stream << t;
+ previous = t;
}
}
}