aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/examples/example_dep_label.cc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/cplusplus/examples/example_dep_label.cc')
-rw-r--r--doc/api/cplusplus/examples/example_dep_label.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/cplusplus/examples/example_dep_label.cc b/doc/api/cplusplus/examples/example_dep_label.cc
index 3dcbfc0..5514423 100644
--- a/doc/api/cplusplus/examples/example_dep_label.cc
+++ b/doc/api/cplusplus/examples/example_dep_label.cc
@@ -154,7 +154,7 @@ int main(int argc, char * argv[])
/* Fetch package IDs for all installed packages. */
std::shared_ptr<const PackageIDSequence> ids((*env)[selection::AllVersionsUnsorted(
generator::All() |
- filter::InstalledAtRoot(FSEntry("/")))]);
+ filter::InstalledAtSlash())]);
/* Store a map from distfile name to whether it is fetch restricted. */
ResultsMap results;