aboutsummaryrefslogtreecommitdiff
path: root/paludis/args/man.cc
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2011-10-09 16:15:52 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2011-10-14 23:04:29 +0100
commitf672fa2b53cf66a1b820b282f2382ea6b3a5f017 (patch)
treeee8bd0562084242e295b82c160df855beb67b703 /paludis/args/man.cc
parent6779001d17d4a16ddd1a5cf0f6300307dddd18a5 (diff)
downloadpaludis-f672fa2b53cf66a1b820b282f2382ea6b3a5f017.tar.gz
paludis-f672fa2b53cf66a1b820b282f2382ea6b3a5f017.tar.xz
Use nice new toupper/tolower functions
Diffstat (limited to 'paludis/args/man.cc')
-rw-r--r--paludis/args/man.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/paludis/args/man.cc b/paludis/args/man.cc
index d33a7f706..aa2d4ac00 100644
--- a/paludis/args/man.cc
+++ b/paludis/args/man.cc
@@ -19,13 +19,13 @@
*/
#include "man.hh"
+#include <paludis/util/upper_lower.hh>
#include <paludis/util/visitor_cast.hh>
#include <paludis/util/wrapped_forward_iterator-impl.hh>
#include <functional>
#include <ostream>
#include <sstream>
#include <algorithm>
-#include <ctype.h>
using namespace paludis;
using namespace paludis::args;
@@ -291,9 +291,7 @@ AsciidocWriter::end_description()
void
AsciidocWriter::start_options(const std::string & s)
{
- std::string upper_s;
- std::transform(s.begin(), s.end(), std::back_inserter(upper_s), &::toupper);
- _os << upper_s << endl;
+ _os << toupper(s) << endl;
_os << std::string(s.size(), char('-')) << endl;
}