aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-13 11:24:45 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-13 11:24:45 +0100
commite7e7b6edd8ccb6f314cef1f6d7abf8352616b38e (patch)
tree33f3ab4fc93139e364e08178a5503022169476a9 /doc/api/cplusplus/examples/example_dep_spec_flattener.cc
parente37860d45510f9fc35649e9c00ced04900457f14 (diff)
downloadpaludis-e7e7b6edd8ccb6f314cef1f6d7abf8352616b38e.tar.gz
paludis-e7e7b6edd8ccb6f314cef1f6d7abf8352616b38e.tar.xz
Rename spec tree root to top
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 d9308531d..a1a272061 100644
--- a/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
+++ b/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
@@ -60,7 +60,7 @@ int main(int argc, char * argv[])
DepSpecFlattener<ProvideSpecTree, PackageDepSpec> provides(env.get());
/* Populate it by making it visit the key's value */
- (*i)->provide_key()->value()->root()->accept(provides);
+ (*i)->provide_key()->value()->top()->accept(provides);
/* The results are available through DepSpecFlattener::begin()
* and ::end(). These return an iterator to a std::shared_ptr<>,
@@ -74,7 +74,7 @@ int main(int argc, char * argv[])
if ((*i)->homepage_key())
{
DepSpecFlattener<SimpleURISpecTree, SimpleURIDepSpec> homepages(env.get());
- (*i)->homepage_key()->value()->root()->accept(homepages);
+ (*i)->homepage_key()->value()->top()->accept(homepages);
cout << " " << left << setw(24) << "Homepages:" << " "
<< join(indirect_iterator(homepages.begin()), indirect_iterator(homepages.end()), " ")
@@ -93,7 +93,7 @@ int main(int argc, char * argv[])
DepSpecFlattener<PlainTextSpecTree, PlainTextDepSpec> restricts(env.get());
simple_visitor_cast<const MetadataSpecTreeKey<PlainTextSpecTree> >(
- **(*i)->find_metadata("RESTRICT"))->value()->root()->accept(restricts);
+ **(*i)->find_metadata("RESTRICT"))->value()->top()->accept(restricts);
cout << " " << left << setw(24) << "Restricts:" << " "
<< join(indirect_iterator(restricts.begin()), indirect_iterator(restricts.end()), " ")