aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/examples/example_dep_spec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/cplusplus/examples/example_dep_spec.cc')
-rw-r--r--doc/api/cplusplus/examples/example_dep_spec.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/cplusplus/examples/example_dep_spec.cc b/doc/api/cplusplus/examples/example_dep_spec.cc
index 081b201ed..074c5750e 100644
--- a/doc/api/cplusplus/examples/example_dep_spec.cc
+++ b/doc/api/cplusplus/examples/example_dep_spec.cc
@@ -59,8 +59,8 @@ int main(int argc, char * argv[])
/* Display information about the PackageDepSpec. */
cout << "Information about '" << spec << "':" << endl;
- if (spec.package_ptr())
- cout << " " << left << setw(24) << "Package:" << " " << *spec.package_ptr() << endl;
+ if (spec.package_name_constraint())
+ cout << " " << left << setw(24) << "Package:" << " " << spec.package_name_constraint()->name() << endl;
if (spec.category_name_part_ptr())
cout << " " << left << setw(24) << "Category part:" << " " << *spec.category_name_part_ptr() << endl;