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

Unified Diff: lily/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/enclosing-bracket.cc ('k') | lily/engraver-group.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/engraver.cc
diff --git a/lily/engraver.cc b/lily/engraver.cc
index 19b538f2b2b4872f3f76cc45bb160b07c16614b5..74f0ea511b7f48608d04e7a25e1eb91f41fd9f51 100644
--- a/lily/engraver.cc
+++ b/lily/engraver.cc
@@ -55,9 +55,9 @@ Engraver::make_grob_info (Grob *e, SCM cause)
{
cause = m->to_event ()->unprotect ();
}
- if (scm_is_null (e->get_property ("cause"))
+ if (scm_is_null (get_property (e, "cause"))
&& (unsmob<Stream_event> (cause) || unsmob<Grob> (cause)))
- e->set_property ("cause", cause);
+ set_property (e, "cause", cause);
return Grob_info (this, e);
}
« no previous file with comments | « lily/enclosing-bracket.cc ('k') | lily/engraver-group.cc » ('j') | no next file with comments »

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