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

Unified Diff: lily/footnote-engraver.cc

Issue 573670043: Refactor get/set_property to take the item as first argument
Patch Set: Manual completion of patch set Created 4 years, 11 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/font-size-engraver.cc ('k') | lily/forbid-break-engraver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/footnote-engraver.cc
diff --git a/lily/footnote-engraver.cc b/lily/footnote-engraver.cc
index c6e7d3f36687763fcabd7b5d0ad8d865e87527da..8a9b3c0758cbf768120359acad059486297f8945 100644
--- a/lily/footnote-engraver.cc
+++ b/lily/footnote-engraver.cc
@@ -66,7 +66,7 @@ Footnote_engraver::footnotify (Grob *g, SCM cause)
Spanner *b = make_spanner ("FootnoteSpanner", cause);
b->set_parent (s, Y_AXIS);
b->set_parent (s, X_AXIS);
- Grob *bound = unsmob<Grob> (get_property ("currentMusicalColumn"));
+ Grob *bound = unsmob<Grob> (get_property (this, "currentMusicalColumn"));
b->set_bound (LEFT, bound);
annotated_spanners_.push_back (Drul_array<Spanner *> (s, b));
}
@@ -81,7 +81,7 @@ Footnote_engraver::footnotify (Grob *g, SCM cause)
void
Footnote_engraver::acknowledge_grob (Grob_info info)
{
- Music *mus = unsmob<Music> (info.grob ()->get_property ("footnote-music"));
+ Music *mus = unsmob<Music> (get_property (info.grob (), "footnote-music"));
if (mus)
{
@@ -94,7 +94,7 @@ Footnote_engraver::acknowledge_grob (Grob_info info)
footnotify (info.grob (), mus->to_event ()->unprotect ());
// This grob has exhausted its footnote
- info.grob ()->set_property ("footnote-music", SCM_EOL);
+ set_property (info.grob (), "footnote-music", SCM_EOL);
return;
}
@@ -110,7 +110,7 @@ Footnote_engraver::acknowledge_end_grob (Grob_info info)
{
if (annotated_spanners_[i][LEFT] == s)
{
- Grob *bound = unsmob<Grob> (get_property ("currentMusicalColumn"));
+ Grob *bound = unsmob<Grob> (get_property (this, "currentMusicalColumn"));
annotated_spanners_[i][RIGHT]->set_bound (RIGHT, bound);
break;
}
« no previous file with comments | « lily/font-size-engraver.cc ('k') | lily/forbid-break-engraver.cc » ('j') | no next file with comments »

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