aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-02 16:27:55 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-02 16:27:55 +0000
commita5d40f88ff2e5452adb6e1b6f1d73b0bac7efde0 (patch)
tree91450c8d11ba03ebfb0c8bcda82e23fa513778c2 /doc
parentdb6f0b1425ee62088bd290b3ae684ea2d51ff1ad (diff)
downloadpaludis-a5d40f88ff2e5452adb6e1b6f1d73b0bac7efde0.tar.gz
paludis-a5d40f88ff2e5452adb6e1b6f1d73b0bac7efde0.tar.xz
Start switching over from sr to kc.
Diffstat (limited to 'doc')
-rw-r--r--doc/api/cplusplus/examples/example_action.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/api/cplusplus/examples/example_action.cc b/doc/api/cplusplus/examples/example_action.cc
index f00c58ada..ecfc13ba4 100644
--- a/doc/api/cplusplus/examples/example_action.cc
+++ b/doc/api/cplusplus/examples/example_action.cc
@@ -61,9 +61,9 @@ int main(int argc, char * argv[])
* creating a FetchAction, controlling whether safe resume is used
* and whether unneeded (e.g. due to disabled USE flags) source
* files should still be fetched. */
- FetchAction fetch_action(FetchActionOptions::create()
- .fetch_unneeded(false)
- .safe_resume(true)
+ FetchAction fetch_action(FetchActionOptions::named_create()
+ (k::fetch_unneeded(), false)
+ (k::safe_resume(), true)
);
try
{
@@ -80,16 +80,16 @@ int main(int argc, char * argv[])
for (Sequence<FetchActionFailure>::ConstIterator f(e.failures()->begin()), f_end(e.failures()->end()) ;
f != f_end ; ++f)
{
- cout << " * File '" << f->target_file << "': ";
+ cout << " * File '" << (*f)[k::target_file()] << "': ";
bool need_comma(false);
- if (f->requires_manual_fetching)
+ if ((*f)[k::requires_manual_fetching()])
{
cout << "requires manual fetching";
need_comma = true;
}
- if (f->failed_automatic_fetching)
+ if ((*f)[k::failed_automatic_fetching()])
{
if (need_comma)
cout << ", ";
@@ -97,11 +97,11 @@ int main(int argc, char * argv[])
need_comma = true;
}
- if (! f->failed_integrity_checks.empty())
+ if (! (*f)[k::failed_integrity_checks()].empty())
{
if (need_comma)
cout << ", ";
- cout << "failed integrity checks: " << f->failed_integrity_checks;
+ cout << "failed integrity checks: " << (*f)[k::failed_integrity_checks()];
need_comma = true;
}
}