aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/examples
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/cplusplus/examples')
-rw-r--r--doc/api/cplusplus/examples/example_contents.cc2
-rw-r--r--doc/api/cplusplus/examples/example_dep_label.cc2
-rw-r--r--doc/api/cplusplus/examples/example_dep_spec_flattener.cc2
-rw-r--r--doc/api/cplusplus/examples/example_match_package.cc2
-rw-r--r--doc/api/cplusplus/examples/example_metadata_key.cc8
-rw-r--r--doc/api/cplusplus/examples/example_selection.cc2
6 files changed, 9 insertions, 9 deletions
diff --git a/doc/api/cplusplus/examples/example_contents.cc b/doc/api/cplusplus/examples/example_contents.cc
index 7c5226632..8be11c197 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()) ;
diff --git a/doc/api/cplusplus/examples/example_dep_label.cc b/doc/api/cplusplus/examples/example_dep_label.cc
index 3dcbfc015..5514423c7 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;
diff --git a/doc/api/cplusplus/examples/example_dep_spec_flattener.cc b/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
index a1a272061..50402161b 100644
--- a/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
+++ b/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
@@ -44,7 +44,7 @@ int main(int argc, char * argv[])
/* Fetch package IDs for all installed packages. */
std::shared_ptr<const PackageIDSequence> ids((*env)[selection::AllVersionsSorted(
generator::All() |
- filter::InstalledAtRoot(FSEntry("/")))]);
+ filter::InstalledAtSlash())]);
/* For each ID: */
for (PackageIDSequence::ConstIterator i(ids->begin()), i_end(ids->end()) ;
diff --git a/doc/api/cplusplus/examples/example_match_package.cc b/doc/api/cplusplus/examples/example_match_package.cc
index 9bad07ca9..741fa9e30 100644
--- a/doc/api/cplusplus/examples/example_match_package.cc
+++ b/doc/api/cplusplus/examples/example_match_package.cc
@@ -42,7 +42,7 @@ int main(int argc, char * argv[])
/* Fetch all installed packages. */
std::shared_ptr<const PackageIDSequence> ids((*env)[selection::AllVersionsSorted(
generator::All() |
- filter::InstalledAtRoot(FSEntry("/")))]);
+ filter::InstalledAtSlash())]);
/* Fetch the 'system' and 'world' sets. Ordinarily we should check for
* zero pointers here, but these two sets will always exist. */
diff --git a/doc/api/cplusplus/examples/example_metadata_key.cc b/doc/api/cplusplus/examples/example_metadata_key.cc
index 21cd85fe4..a75944a6d 100644
--- a/doc/api/cplusplus/examples/example_metadata_key.cc
+++ b/doc/api/cplusplus/examples/example_metadata_key.cc
@@ -75,9 +75,9 @@ namespace
cout << indent << left << setw(30) << " Value:" << " " << key.value() << endl;
}
- void visit(const MetadataValueKey<FSEntry> & key)
+ void visit(const MetadataValueKey<FSPath> & key)
{
- cout << indent << left << setw(30) << " Class:" << " " << "MetadataValueKey<FSEntry>" << endl;
+ cout << indent << left << setw(30) << " Class:" << " " << "MetadataValueKey<FSPath>" << endl;
cout << indent << left << setw(30) << " Value:" << " " << key.value() << endl;
}
@@ -193,9 +193,9 @@ namespace
cout << indent << left << setw(30) << " Value:" << " " << join(key.value()->begin(), key.value()->end(), " ") << endl;
}
- void visit(const MetadataCollectionKey<FSEntrySequence> & key)
+ void visit(const MetadataCollectionKey<FSPathSequence> & key)
{
- cout << indent << left << setw(30) << " Class:" << " " << "MetadataCollectionKey<FSEntrySequence>" << endl;
+ cout << indent << left << setw(30) << " Class:" << " " << "MetadataCollectionKey<FSPathSequence>" << endl;
cout << indent << left << setw(30) << " Value:" << " " << join(key.value()->begin(), key.value()->end(), " ") << endl;
}
diff --git a/doc/api/cplusplus/examples/example_selection.cc b/doc/api/cplusplus/examples/example_selection.cc
index a086b0c4a..a1669af87 100644
--- a/doc/api/cplusplus/examples/example_selection.cc
+++ b/doc/api/cplusplus/examples/example_selection.cc
@@ -70,7 +70,7 @@ int main(int argc, char * argv[])
show_selection(env, selection::AllVersionsSorted(
generator::Matches(make_package_dep_spec({ }).package(
QualifiedPackageName("sys-apps/paludis")), { }) |
- filter::InstalledAtRoot(FSEntry("/"))));
+ filter::InstalledAtSlash()));
/* Filters can be combined. Usually filter::NotMasked should be combined
* with filter::SupportsAction<InstallAction>, since installed packages