aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-04 08:19:18 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-04 08:33:00 +0100
commit6d8fa49055b5c43117d98c020187be9bfa4fb2c6 (patch)
tree1f8d90310bbac90838dce4f082fd4c8fa4e04942 /doc
parent508e7564e1d8d1de765d4d517bc899b7ef137716 (diff)
downloadpaludis-6d8fa49055b5c43117d98c020187be9bfa4fb2c6.tar.gz
paludis-6d8fa49055b5c43117d98c020187be9bfa4fb2c6.tar.xz
Use reqs to constraints
Diffstat (limited to 'doc')
-rw-r--r--doc/api/cplusplus/examples/example_dep_spec.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/api/cplusplus/examples/example_dep_spec.cc b/doc/api/cplusplus/examples/example_dep_spec.cc
index 1c386ab62..ba0f64753 100644
--- a/doc/api/cplusplus/examples/example_dep_spec.cc
+++ b/doc/api/cplusplus/examples/example_dep_spec.cc
@@ -123,12 +123,11 @@ int main(int argc, char * argv[])
spec.installable_to_repository_constraint()->name() << ", " <<
spec.installable_to_repository_constraint()->include_masked() << endl;
- if (spec.additional_requirements_ptr() && ! spec.additional_requirements_ptr()->empty())
+ if (spec.all_choice_constraints() && ! spec.all_choice_constraints()->empty())
{
- cout << " " << left << setw(24) << "Additional requirements:" << " ";
+ cout << " " << left << setw(24) << "Choice constraints:" << " ";
bool need_join(false);
- for (AdditionalPackageDepSpecRequirements::ConstIterator u(spec.additional_requirements_ptr()->begin()),
- u_end(spec.additional_requirements_ptr()->end()) ; u != u_end ; ++u)
+ for (auto u(spec.all_choice_constraints()->begin()), u_end(spec.all_choice_constraints()->end()) ; u != u_end ; ++u)
{
if (need_join)
cout << " and ";