aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/examples/example_match_package.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-24 11:40:46 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-24 11:40:46 +0100
commit637a8d521b304dec1ec4db201d5d71d509efb6c1 (patch)
treefa4f7f5b0537c7f7361e4d76341b53d121c5d003 /doc/api/cplusplus/examples/example_match_package.cc
parentd3b974490cf7482b034f1a6779b65e411616f84c (diff)
downloadpaludis-637a8d521b304dec1ec4db201d5d71d509efb6c1.tar.gz
paludis-637a8d521b304dec1ec4db201d5d71d509efb6c1.tar.xz
Make use of Options init lists
Diffstat (limited to 'doc/api/cplusplus/examples/example_match_package.cc')
-rw-r--r--doc/api/cplusplus/examples/example_match_package.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/cplusplus/examples/example_match_package.cc b/doc/api/cplusplus/examples/example_match_package.cc
index 782473a12..9bad07ca9 100644
--- a/doc/api/cplusplus/examples/example_match_package.cc
+++ b/doc/api/cplusplus/examples/example_match_package.cc
@@ -54,14 +54,14 @@ int main(int argc, char * argv[])
i != i_end ; ++i)
{
/* Is it paludis? */
- if (match_package(*env, make_package_dep_spec(PartiallyMadePackageDepSpecOptions()).package(
- QualifiedPackageName("sys-apps/paludis")), **i, MatchPackageOptions()))
+ if (match_package(*env, make_package_dep_spec({ }).package(
+ QualifiedPackageName("sys-apps/paludis")), **i, { }))
cout << left << setw(50) << (stringify(**i) + ":") << " " << "paludis" << endl;
/* No. Is it in system or world? */
- else if (match_package_in_set(*env, *system, **i, MatchPackageOptions()))
+ else if (match_package_in_set(*env, *system, **i, { }))
cout << left << setw(50) << (stringify(**i) + ":") << " " << "system" << endl;
- else if (match_package_in_set(*env, *world, **i, MatchPackageOptions()))
+ else if (match_package_in_set(*env, *world, **i, { }))
cout << left << setw(50) << (stringify(**i) + ":") << " " << "world" << endl;
else
cout << left << setw(50) << (stringify(**i) + ":") << " " << "nothing" << endl;