aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild_id.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/repositories/e/ebuild_id.cc
parent6779001d17d4a16ddd1a5cf0f6300307dddd18a5 (diff)
downloadpaludis-f672fa2b53cf66a1b820b282f2382ea6b3a5f017.tar.gz
paludis-f672fa2b53cf66a1b820b282f2382ea6b3a5f017.tar.xz
Use nice new toupper/tolower functions
Diffstat (limited to 'paludis/repositories/e/ebuild_id.cc')
-rw-r--r--paludis/repositories/e/ebuild_id.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/paludis/repositories/e/ebuild_id.cc b/paludis/repositories/e/ebuild_id.cc
index 3fd6154bc..2f7d5c28e 100644
--- a/paludis/repositories/e/ebuild_id.cc
+++ b/paludis/repositories/e/ebuild_id.cc
@@ -68,6 +68,7 @@
#include <paludis/util/accept_visitor.hh>
#include <paludis/util/fs_stat.hh>
#include <paludis/util/join.hh>
+#include <paludis/util/upper_lower.hh>
#include <set>
#include <iterator>
@@ -387,9 +388,7 @@ EbuildID::need_non_xml_keys_added() const
x_end(e_repo->profile()->use_expand_implicit()->end()) ;
x != x_end ; ++x)
{
- std::string lower_x;
- std::transform(x->begin(), x->end(), std::back_inserter(lower_x), &::tolower);
-
+ std::string lower_x(tolower(*x));
bool prefixed(use_expand->end() != use_expand->find(*x));
bool unprefixed(use_expand_unprefixed->end() != use_expand_unprefixed->find(*x));