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

Unified Diff: lily/piano-pedal-align-engraver.cc

Issue 344010043: Issue 5336: Remove downcasting methods from Grob_array and Grob_info (Closed)
Patch Set: Created 5 years, 9 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/paper-column-engraver.cc ('k') | lily/pointer-group-interface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/piano-pedal-align-engraver.cc
diff --git a/lily/piano-pedal-align-engraver.cc b/lily/piano-pedal-align-engraver.cc
index 0d07872db08b18eeb82ad7aef6a1d6747879908a..616a4a34e25b275b8a70448cb2736c5eccc8dcb3 100644
--- a/lily/piano-pedal-align-engraver.cc
+++ b/lily/piano-pedal-align-engraver.cc
@@ -213,14 +213,15 @@ Piano_pedal_align_engraver::acknowledge_piano_pedal_bracket (Grob_info gi)
Grob *sp = make_line_spanner (type, gi.grob ()->self_scm ());
Axis_group_interface::add_element (sp, gi.grob ());
- pedal_info_[type].carrying_spanner_ = gi.spanner ();
+ pedal_info_[type].carrying_spanner_ = dynamic_cast<Spanner *> (gi.grob ());
}
void
Piano_pedal_align_engraver::acknowledge_end_piano_pedal_bracket (Grob_info gi)
{
Pedal_type type = get_grob_pedal_type (gi);
- pedal_info_[type].finished_carrying_spanner_ = gi.spanner ();
+ pedal_info_[type].finished_carrying_spanner_
+ = dynamic_cast<Spanner *> (gi.grob ());
}
void
« no previous file with comments | « lily/paper-column-engraver.cc ('k') | lily/pointer-group-interface.cc » ('j') | no next file with comments »

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