aboutsummaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-29 11:03:54 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-04 08:32:58 +0100
commit5574c81a3c60266d023d18dfc115803da8b12e6b (patch)
tree659da456cb9813045fd32067a3db11d7c7d7ce82 /doc/api
parentb7f5d7dbfeff2e406ef24ca471657e1735a4db4f (diff)
downloadpaludis-5574c81a3c60266d023d18dfc115803da8b12e6b.tar.gz
paludis-5574c81a3c60266d023d18dfc115803da8b12e6b.tar.xz
category and package parts to requirements
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/cplusplus/examples/example_dep_spec.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/cplusplus/examples/example_dep_spec.cc b/doc/api/cplusplus/examples/example_dep_spec.cc
index 074c5750e..ba65dae13 100644
--- a/doc/api/cplusplus/examples/example_dep_spec.cc
+++ b/doc/api/cplusplus/examples/example_dep_spec.cc
@@ -62,11 +62,11 @@ int main(int argc, char * argv[])
if (spec.package_name_constraint())
cout << " " << left << setw(24) << "Package:" << " " << spec.package_name_constraint()->name() << endl;
- if (spec.category_name_part_ptr())
- cout << " " << left << setw(24) << "Category part:" << " " << *spec.category_name_part_ptr() << endl;
+ if (spec.category_name_part_constraint())
+ cout << " " << left << setw(24) << "Category part:" << " " << spec.category_name_part_constraint()->name_part() << endl;
- if (spec.package_name_part_ptr())
- cout << " " << left << setw(24) << "Package part:" << " " << *spec.package_name_part_ptr() << endl;
+ if (spec.package_name_part_constraint())
+ cout << " " << left << setw(24) << "Package part:" << " " << spec.package_name_part_constraint()->name_part() << endl;
if (spec.version_requirements_ptr() && ! spec.version_requirements_ptr()->empty())
{