aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/examples/example_mask.cc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/cplusplus/examples/example_mask.cc')
-rw-r--r--doc/api/cplusplus/examples/example_mask.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/doc/api/cplusplus/examples/example_mask.cc b/doc/api/cplusplus/examples/example_mask.cc
index de3de72f2..fe98d6fa9 100644
--- a/doc/api/cplusplus/examples/example_mask.cc
+++ b/doc/api/cplusplus/examples/example_mask.cc
@@ -43,15 +43,13 @@ namespace
void visit(const UnacceptedMask & mask)
{
cout << left << setw(30) << " Class:" << " " << "UnacceptedMask" << endl;
- if (mask.unaccepted_key())
- cout << left << setw(30) << " Unaccepted key:" << " " << mask.unaccepted_key()->raw_name() << endl;
+ cout << left << setw(30) << " Unaccepted key:" << " " << mask.unaccepted_key_name() << endl;
}
void visit(const RepositoryMask & mask)
{
cout << left << setw(30) << " Class:" << " " << "RepositoryMask" << endl;
- if (mask.mask_key())
- cout << left << setw(30) << " Mask key:" << " " << mask.mask_key()->raw_name() << endl;
+ cout << left << setw(30) << " Mask key:" << " " << mask.mask_key_name() << endl;
}
void visit(const UnsupportedMask & mask)
@@ -63,8 +61,7 @@ namespace
void visit(const AssociationMask & mask)
{
cout << left << setw(30) << " Class:" << " " << "AssociationMask" << endl;
- if (mask.associated_package())
- cout << left << setw(30) << " Associated package:" << " " << *mask.associated_package() << endl;
+ cout << left << setw(30) << " Associated package:" << " " << mask.associated_package_spec() << endl;
}
};
}