aboutsummaryrefslogtreecommitdiff
path: root/src/clients/qualudis/qualudis.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-22 09:26:29 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-22 09:26:29 +0000
commit538756fb3236428ab50d027176e757c5dd2e3d1e (patch)
tree3cb68fd08fbd696e4d826c2882ab8ffa5057e52f /src/clients/qualudis/qualudis.cc
parent0f48cefea53ccd11d68255c5d52cf620b121303b (diff)
downloadpaludis-538756fb3236428ab50d027176e757c5dd2e3d1e.tar.gz
paludis-538756fb3236428ab50d027176e757c5dd2e3d1e.tar.xz
Formatters
Diffstat (limited to 'src/clients/qualudis/qualudis.cc')
-rw-r--r--src/clients/qualudis/qualudis.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/clients/qualudis/qualudis.cc b/src/clients/qualudis/qualudis.cc
index 4760d19..03115a0 100644
--- a/src/clients/qualudis/qualudis.cc
+++ b/src/clients/qualudis/qualudis.cc
@@ -28,6 +28,7 @@
#include <paludis/util/virtual_constructor-impl.hh>
#include <paludis/util/tr1_functional.hh>
#include <paludis/util/visitor-impl.hh>
+#include <paludis/stringify_formatter.hh>
#include <paludis/environments/no_config/no_config_environment.hh>
#include <cstdlib>
@@ -59,6 +60,7 @@ namespace
ConstVisitor<MetadataKeyVisitorTypes>
{
std::ostringstream stream;
+ StringifyFormatter formatter;
void visit(const MetadataSetKey<IUseFlagSet> & k)
{
@@ -82,27 +84,27 @@ namespace
void visit(const MetadataSpecTreeKey<DependencySpecTree> & k)
{
- stream << k.raw_name() << ": " << k.pretty_print_flat();
+ stream << k.raw_name() << ": " << k.pretty_print_flat(formatter);
}
void visit(const MetadataSpecTreeKey<URISpecTree> & k)
{
- stream << k.raw_name() << ": " << k.pretty_print_flat();
+ stream << k.raw_name() << ": " << k.pretty_print_flat(formatter);
}
void visit(const MetadataSpecTreeKey<LicenseSpecTree> & k)
{
- stream << k.raw_name() << ": " << k.pretty_print_flat();
+ stream << k.raw_name() << ": " << k.pretty_print_flat(formatter);
}
void visit(const MetadataSpecTreeKey<ProvideSpecTree> & k)
{
- stream << k.raw_name() << ": " << k.pretty_print_flat();
+ stream << k.raw_name() << ": " << k.pretty_print_flat(formatter);
}
void visit(const MetadataSpecTreeKey<RestrictSpecTree> & k)
{
- stream << k.raw_name() << ": " << k.pretty_print_flat();
+ stream << k.raw_name() << ": " << k.pretty_print_flat(formatter);
}
void visit(const MetadataSetKey<PackageIDSequence> & k)