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

Unified Diff: lily/context-specced-music-iterator.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/context-scheme.cc ('k') | lily/cue-clef-engraver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/context-specced-music-iterator.cc
diff --git a/lily/context-specced-music-iterator.cc b/lily/context-specced-music-iterator.cc
index 75ef22bd68c5b5e15c7e0272927bc2ced6b8b7da..9a960f2b8d1f549b615a953fc26c1b27cc0bedc7 100644
--- a/lily/context-specced-music-iterator.cc
+++ b/lily/context-specced-music-iterator.cc
@@ -37,19 +37,19 @@ public:
void
Context_specced_music_iterator::construct_children ()
{
- SCM ct = get_music ()->get_property ("context-type");
+ SCM ct = get_property (get_music (), "context-type");
string c_id;
- SCM ci = get_music ()->get_property ("context-id");
+ SCM ci = get_property (get_music (), "context-id");
if (scm_is_string (ci))
c_id = ly_scm2string (ci);
- SCM ops = get_music ()->get_property ("property-operations");
+ SCM ops = get_property (get_music (), "property-operations");
Direction dir
- = robust_scm2dir (get_music ()->get_property ("search-direction"), CENTER);
+ = robust_scm2dir (get_property (get_music (), "search-direction"), CENTER);
Context *a = 0;
- if (to_boolean (get_music ()->get_property ("create-new")))
+ if (to_boolean (get_property (get_music (), "create-new")))
{
a = get_outlet ()->create_unique_context (dir, ct, c_id, ops);
if (!a)
« no previous file with comments | « lily/context-scheme.cc ('k') | lily/cue-clef-engraver.cc » ('j') | no next file with comments »

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