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

Unified Diff: lily/slur-performer.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/slur-engraver.cc ('k') | lily/slur-score-parameters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/slur-performer.cc
diff --git a/lily/slur-performer.cc b/lily/slur-performer.cc
index aed00da7ef26d2e3275bb8f4b1721a8401bc0acb..9725a6217640806f2beea4a2deef94494922cca3 100644
--- a/lily/slur-performer.cc
+++ b/lily/slur-performer.cc
@@ -74,7 +74,7 @@ Slur_performer::process_music ()
void
Slur_performer::set_melisma (bool ml)
{
- context ()->set_property ("slurMelismaBusy", ml ? SCM_BOOL_T : SCM_BOOL_F);
+ set_property (context (), "slurMelismaBusy", ml ? SCM_BOOL_T : SCM_BOOL_F);
}
void
@@ -87,7 +87,7 @@ Slur_performer::start_translation_timestep ()
void
Slur_performer::listen_slur (Stream_event *ev)
{
- Direction d = to_dir (ev->get_property ("span-direction"));
+ Direction d = to_dir (get_property (ev, "span-direction"));
if (d == START)
start_ev_ = ev;
« no previous file with comments | « lily/slur-engraver.cc ('k') | lily/slur-score-parameters.cc » ('j') | no next file with comments »

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