aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/examples/example_package_id.cc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/cplusplus/examples/example_package_id.cc')
-rw-r--r--doc/api/cplusplus/examples/example_package_id.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/cplusplus/examples/example_package_id.cc b/doc/api/cplusplus/examples/example_package_id.cc
index 040caf166..22c27033e 100644
--- a/doc/api/cplusplus/examples/example_package_id.cc
+++ b/doc/api/cplusplus/examples/example_package_id.cc
@@ -59,7 +59,7 @@ int main(int argc, char * argv[])
/* Start by outputting some basic properties: */
cout << left << setw(30) << " Name:" << " " << (*i)->name() << endl;
cout << left << setw(30) << " Version:" << " " << (*i)->version() << endl;
- cout << left << setw(30) << " Repository Name:" << " " << (*i)->repository()->name() << endl;
+ cout << left << setw(30) << " Repository Name:" << " " << (*i)->repository_name() << endl;
/* The PackageID::canonical_form method should be used when
* outputting a package (the ostream << operator uses this). */