aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_display_resolution.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/cmd_display_resolution.cc')
-rwxr-xr-xsrc/clients/cave/cmd_display_resolution.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index dbb12adf6..a9ef2afce 100755
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -1026,16 +1026,16 @@ namespace
{
cout << fuc(fs_masked_by(), fv<'i'>(indent), fv<'c'>(colour), fv<'d'>(m.description()));
MaskedByKeyVisitor v{env, id, indent + " "};
- if (m.mask_key())
- m.mask_key()->accept(v);
+ if (! m.mask_key_name().empty())
+ (*id->find_metadata(m.mask_key_name()))->accept(v);
}
void visit(const UnacceptedMask & m) const
{
cout << fuc(fs_masked_by(), fv<'i'>(indent), fv<'c'>(colour), fv<'d'>(m.description()));
MaskedByKeyVisitor v{env, id, indent + " "};
- if (m.unaccepted_key())
- m.unaccepted_key()->accept(v);
+ if (! m.unaccepted_key_name().empty())
+ (*id->find_metadata(m.unaccepted_key_name()))->accept(v);
}
void visit(const UnsupportedMask & m) const
@@ -1046,7 +1046,7 @@ namespace
void visit(const AssociationMask & m) const
{
cout << fuc(fs_masked_by_explanation(), fv<'i'>(indent), fv<'c'>(colour), fv<'d'>(m.description()),
- fv<'x'>("associated package '" + stringify(*m.associated_package()) + "'"));
+ fv<'x'>("associated package '" + stringify(m.associated_package_spec()) + "'"));
}
};