Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1228)

Unified Diff: lily/span-bar-engraver.cc

Issue 137760043: Replace internal_get_property with get_property where possible (Closed)
Patch Set: fix memoization Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lily/self-alignment-interface.cc ('k') | lily/tuplet-bracket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/span-bar-engraver.cc
diff --git a/lily/span-bar-engraver.cc b/lily/span-bar-engraver.cc
index 5e93de630a41e8fd78200902af3e49c9243f9d88..a1420d532bdc00d963b54087b8e8444d07758d3b 100644
--- a/lily/span-bar-engraver.cc
+++ b/lily/span-bar-engraver.cc
@@ -75,24 +75,23 @@ Span_bar_engraver::process_acknowledged ()
Pointer_group_interface::add_grob (spanbar_, ly_symbol2scm ("elements"), bars_[i]);
make_spanbar_ = false;
}
}
void
Span_bar_engraver::stop_translation_timestep ()
{
if (spanbar_)
{
- SCM vissym = ly_symbol2scm ("break-visibility");
- SCM vis = bars_[0]->internal_get_property (vissym);
- if (ly_is_equal (spanbar_->internal_get_property (vissym), vis))
- spanbar_->set_property (vissym, vis);
+ SCM vis = bars_[0]->get_property ("break-visibility");
+ if (ly_is_equal (spanbar_->get_property ("break-visibility"), vis))
+ spanbar_->set_property ("break-visibility", vis);
scm_call_1 (ly_lily_module_constant ("span-bar::notify-grobs-of-my-existence"), spanbar_->self_scm ());
spanbar_ = 0;
}
bars_.resize (0);
}
#include "translator.icc"
ADD_ACKNOWLEDGER (Span_bar_engraver, bar_line);
ADD_TRANSLATOR (Span_bar_engraver,
« no previous file with comments | « lily/self-alignment-interface.cc ('k') | lily/tuplet-bracket.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b