aboutsummaryrefslogtreecommitdiff
path: root/python/paludis_python.hh
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 /python/paludis_python.hh
parent6779001d17d4a16ddd1a5cf0f6300307dddd18a5 (diff)
downloadpaludis-f672fa2b53cf66a1b820b282f2382ea6b3a5f017.tar.gz
paludis-f672fa2b53cf66a1b820b282f2382ea6b3a5f017.tar.xz
Use nice new toupper/tolower functions
Diffstat (limited to 'python/paludis_python.hh')
-rw-r--r--python/paludis_python.hh5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/paludis_python.hh b/python/paludis_python.hh
index 61bb8a86b..ccf63e443 100644
--- a/python/paludis_python.hh
+++ b/python/paludis_python.hh
@@ -22,6 +22,7 @@
#include <python/mutex.hh>
#include <paludis/util/stringify.hh>
+#include <paludis/util/upper_lower.hh>
#include <paludis/util/attributes.hh>
#include <paludis/util/named_value-fwd.hh>
#include <boost/python.hpp>
@@ -97,9 +98,7 @@ namespace paludis
boost::python::enum_<E_> enum_(name.c_str());
for (E_ e(static_cast<E_>(0)); e != e_last ; e = static_cast<E_>(static_cast<int>(e) + 1))
{
- const std::string e_name_low = stringify(e);
- std::string e_name_up;
- std::transform(e_name_low.begin(), e_name_low.end(), std::back_inserter(e_name_up), &::toupper);
+ std::string e_name_up(toupper(stringify(e)));
enum_.value(e_name_up.c_str(), e);
doc += "\n\t" + e_name_up;
}