aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-06-04 05:12:44 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-06-04 05:12:44 +0000
commit7e97ae154ccfdcc61dce79dcff3574d261a9ca39 (patch)
tree753db9efacdeb3123e716fb9d148cff6aa5dbcd5 /src
parent00d07ad717b23f89541aceae012084de47b28f46 (diff)
downloadpaludis-7e97ae154ccfdcc61dce79dcff3574d261a9ca39.tar.gz
paludis-7e97ae154ccfdcc61dce79dcff3574d261a9ca39.tar.xz
Re-add Gems, using Syck instead of libyaml. Various code cleanups.
Diffstat (limited to 'src')
-rw-r--r--src/output/use_flag_pretty_printer.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/output/use_flag_pretty_printer.cc b/src/output/use_flag_pretty_printer.cc
index 8b8f873c5..d87124439 100644
--- a/src/output/use_flag_pretty_printer.cc
+++ b/src/output/use_flag_pretty_printer.cc
@@ -23,6 +23,7 @@
#include <paludis/package_database.hh>
#include <paludis/util/collection_concrete.hh>
#include <paludis/util/iterator.hh>
+#include <paludis/util/tr1_functional.hh>
#include "colour.hh"
#include <iostream>
#include <set>
@@ -66,8 +67,7 @@ UseFlagPrettyPrinter::print_package_flags(const PackageDatabaseEntry & pkg,
return;
std::copy(metadata->ebuild_interface->iuse()->begin(), metadata->ebuild_interface->iuse()->end(),
- transform_inserter(std::inserter(iuse, iuse.begin()),
- SelectMember<IUseFlag, UseFlagName, &IUseFlag::flag>()));
+ transform_inserter(std::inserter(iuse, iuse.begin()), tr1::mem_fn(&IUseFlag::flag)));
if (old_pkg)
{
@@ -75,8 +75,7 @@ UseFlagPrettyPrinter::print_package_flags(const PackageDatabaseEntry & pkg,
fetch_repository(old_pkg->repository)->version_metadata(old_pkg->name, old_pkg->version));
if (old_metadata->ebuild_interface)
std::copy(old_metadata->ebuild_interface->iuse()->begin(), old_metadata->ebuild_interface->iuse()->end(),
- transform_inserter(std::inserter(old_iuse, old_iuse.begin()),
- SelectMember<IUseFlag, UseFlagName, &IUseFlag::flag>()));
+ transform_inserter(std::inserter(old_iuse, old_iuse.begin()), tr1::mem_fn(&IUseFlag::flag)));
}
const RepositoryUseInterface * const use_interface(environment()->package_database()->