aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-04 01:23:03 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-04 01:23:03 +0000
commit3ef47f233d579b338cb5e757ee73a3c9382c87ed (patch)
tree208992cee404233edf4bc67c045feed3613d3f4b /doc
parent6ef9fda358a0541b5a5f70011f70adcdc1e30134 (diff)
downloadpaludis-3ef47f233d579b338cb5e757ee73a3c9382c87ed.tar.gz
paludis-3ef47f233d579b338cb5e757ee73a3c9382c87ed.tar.xz
kc some more sr
Diffstat (limited to 'doc')
-rw-r--r--doc/api/cplusplus/examples/example_metadata_key.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/cplusplus/examples/example_metadata_key.cc b/doc/api/cplusplus/examples/example_metadata_key.cc
index 404f29782..239910eba 100644
--- a/doc/api/cplusplus/examples/example_metadata_key.cc
+++ b/doc/api/cplusplus/examples/example_metadata_key.cc
@@ -104,13 +104,13 @@ namespace
* pointer. Other keys can't. */
if (key.value())
{
- cout << indent << left << setw(30) << " Mask file:" << " " << key.value()->mask_file << endl;
+ cout << indent << left << setw(30) << " Mask file:" << " " << (*key.value())[k::mask_file()] << endl;
/* Comment looks best if it's outputted over multiple lines,
* as that's how it tends to be stored in package.mask. */
cout << indent << left << setw(30) << " Comment:" << " ";
bool first(true);
- for (Sequence<std::string>::ConstIterator i(key.value()->comment->begin()),
- i_end(key.value()->comment->end()) ;
+ for (Sequence<std::string>::ConstIterator i((*key.value())[k::comment()]->begin()),
+ i_end((*key.value())[k::comment()]->end()) ;
i != i_end ; ++i)
{
if (! first)