aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/examples/example_contents.cc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/cplusplus/examples/example_contents.cc')
-rw-r--r--doc/api/cplusplus/examples/example_contents.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/cplusplus/examples/example_contents.cc b/doc/api/cplusplus/examples/example_contents.cc
index 7c52266..8be11c1 100644
--- a/doc/api/cplusplus/examples/example_contents.cc
+++ b/doc/api/cplusplus/examples/example_contents.cc
@@ -73,7 +73,7 @@ int main(int argc, char * argv[])
/* Fetch package IDs for installed 'sys-apps/paludis'. */
std::shared_ptr<const PackageIDSequence> ids((*env)[selection::AllVersionsSorted(
generator::Package(QualifiedPackageName("sys-apps/paludis")) |
- filter::InstalledAtRoot(FSEntry("/")))]);
+ filter::InstalledAtSlash())]);
/* For each ID: */
for (PackageIDSequence::ConstIterator i(ids->begin()), i_end(ids->end()) ;