aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-15 11:36:47 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-15 11:36:47 +0000
commit7e125b4740d8bb50aa06b97d1dc070dfbce8bb3a (patch)
treea690976211d4e380d4ffbccfdf5ae53d7b0f1e38 /doc/api/cplusplus/examples/example_dep_spec_flattener.cc
parentae7109237069623709637fd16b0230dddcccda8d (diff)
downloadpaludis-7e125b4740d8bb50aa06b97d1dc070dfbce8bb3a.tar.gz
paludis-7e125b4740d8bb50aa06b97d1dc070dfbce8bb3a.tar.xz
Start removing the global concept of use flags: rename UseDepSpec to ConditionalDepSpec, move the descent logic into the spec.
Diffstat (limited to 'doc/api/cplusplus/examples/example_dep_spec_flattener.cc')
-rw-r--r--doc/api/cplusplus/examples/example_dep_spec_flattener.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/cplusplus/examples/example_dep_spec_flattener.cc b/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
index 1974bce6d..2b4d3bb12 100644
--- a/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
+++ b/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
@@ -58,7 +58,7 @@ int main(int argc, char * argv[])
if ((*i)->provide_key())
{
/* Create our flattener... */
- DepSpecFlattener<ProvideSpecTree, PackageDepSpec> provides(env.get(), **i);
+ DepSpecFlattener<ProvideSpecTree, PackageDepSpec> provides(env.get());
/* Populate it by making it visit the key's value */
(*i)->provide_key()->value()->accept(provides);
@@ -74,7 +74,7 @@ int main(int argc, char * argv[])
/* Again for homepage */
if ((*i)->homepage_key())
{
- DepSpecFlattener<SimpleURISpecTree, SimpleURIDepSpec> homepages(env.get(), **i);
+ DepSpecFlattener<SimpleURISpecTree, SimpleURIDepSpec> homepages(env.get());
(*i)->homepage_key()->value()->accept(homepages);
cout << " " << left << setw(24) << "Homepages:" << " "
@@ -91,7 +91,7 @@ int main(int argc, char * argv[])
if ((*i)->end_metadata() != (*i)->find_metadata("RESTRICT") &&
visitor_cast<const MetadataSpecTreeKey<RestrictSpecTree> >(**(*i)->find_metadata("RESTRICT")))
{
- DepSpecFlattener<RestrictSpecTree, PlainTextDepSpec> restricts(env.get(), **i);
+ DepSpecFlattener<RestrictSpecTree, PlainTextDepSpec> restricts(env.get());
visitor_cast<const MetadataSpecTreeKey<RestrictSpecTree> >(
**(*i)->find_metadata("RESTRICT"))->value()->accept(restricts);