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-08-05 04:43:18 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-05 04:43:18 +0100
commit129acafc8937a5143633c8e21c3e260dfb38df7e (patch)
tree63bc413309bc4721aeb238df44d92d45cfc4bbe6 /doc/api/cplusplus/examples/example_dep_spec_flattener.cc
parent58d38200b5a29264f4b15311461038143acb9149 (diff)
downloadpaludis-129acafc8937a5143633c8e21c3e260dfb38df7e.tar.gz
paludis-129acafc8937a5143633c8e21c3e260dfb38df7e.tar.xz
RestrictSpecTree -> PlainTextSpecTree
Diffstat (limited to 'doc/api/cplusplus/examples/example_dep_spec_flattener.cc')
-rw-r--r--doc/api/cplusplus/examples/example_dep_spec_flattener.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/cplusplus/examples/example_dep_spec_flattener.cc b/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
index 9d3f73abe..5bd592574 100644
--- a/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
+++ b/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
@@ -85,13 +85,13 @@ int main(int argc, char * argv[])
* Instead, we use PackageID::find_metadata to see if the key we
* want exists, and then visitor_cast<> to see whether it's of a
* suitable type (the key could be something other than a
- * MetadataSpecTreeKey<RestrictSpecTree>). */
+ * MetadataSpecTreeKey<PlainTextSpecTree>). */
if ((*i)->end_metadata() != (*i)->find_metadata("RESTRICT") &&
- visitor_cast<const MetadataSpecTreeKey<RestrictSpecTree> >(**(*i)->find_metadata("RESTRICT")))
+ visitor_cast<const MetadataSpecTreeKey<PlainTextSpecTree> >(**(*i)->find_metadata("RESTRICT")))
{
- DepSpecFlattener<RestrictSpecTree, PlainTextDepSpec> restricts(env.get());
+ DepSpecFlattener<PlainTextSpecTree, PlainTextDepSpec> restricts(env.get());
- visitor_cast<const MetadataSpecTreeKey<RestrictSpecTree> >(
+ visitor_cast<const MetadataSpecTreeKey<PlainTextSpecTree> >(
**(*i)->find_metadata("RESTRICT"))->value()->accept(restricts);
cout << " " << left << setw(24) << "Restricts:" << " "