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

Unified Diff: lily/lexer.ll

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/ledger-line-spanner.cc ('k') | lily/ligature-bracket-engraver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/lexer.ll
diff --git a/lily/lexer.ll b/lily/lexer.ll
index 9e4ac1838e435557501285b7c41970c6a286e18a..22b3f4e951a8c84d952e2f1f48caa7d3ebc59343 100644
--- a/lily/lexer.ll
+++ b/lily/lexer.ll
@@ -1139,7 +1139,7 @@ Lily_lexer::eval_scm (SCM readerdata, Input location, char extra_token)
#endif
if (Music *m = unsmob<Music> (v))
{
- if (!unsmob<Input> (m->get_property ("origin")))
+ if (!unsmob<Input> (get_property (m, "origin")))
m->set_spot (override_input (here_input ()));
}
@@ -1168,7 +1168,7 @@ Lily_lexer::eval_scm (SCM readerdata, Input location, char extra_token)
if (Music *m = unsmob<Music> (sval))
{
- if (!unsmob<Input> (m->get_property ("origin")))
+ if (!unsmob<Input> (get_property (m, "origin")))
m->set_spot (override_input (here_input ()));
}
« no previous file with comments | « lily/ledger-line-spanner.cc ('k') | lily/ligature-bracket-engraver.cc » ('j') | no next file with comments »

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