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

Unified Diff: lily/stencil-integral.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/stem-tremolo.cc ('k') | lily/stream-event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/stencil-integral.cc
diff --git a/lily/stencil-integral.cc b/lily/stencil-integral.cc
index 6f4dfbae3fee4e764a9a308f290d009e2bb5fae9..6fdf74309132cec83d412466360220df673fe45d 100644
--- a/lily/stencil-integral.cc
+++ b/lily/stencil-integral.cc
@@ -1055,7 +1055,7 @@ Grob::pure_simple_horizontal_skylines_from_extents (SCM smob, SCM begscm, SCM en
// If the grob is cross staff, we cannot measure its Y-extent before
// wayyyy downstream (after spacing of axis groups is done).
// Thus, we assume that the Y extent is infinite for cross staff grobs.
- return maybe_pure_internal_simple_skylines_from_extents (me, Y_AXIS, true, beg, end, false, to_boolean (me->get_property ("cross-staff")));
+ return maybe_pure_internal_simple_skylines_from_extents (me, Y_AXIS, true, beg, end, false, to_boolean (get_property (me, "cross-staff")));
}
MAKE_SCHEME_CALLBACK (Grob, simple_horizontal_skylines_from_extents, 1);
@@ -1064,7 +1064,7 @@ Grob::simple_horizontal_skylines_from_extents (SCM smob)
{
Grob *me = unsmob<Grob> (smob);
// See comment in function above.
- return maybe_pure_internal_simple_skylines_from_extents (me, Y_AXIS, false, 0, 0, false, to_boolean (me->get_property ("cross-staff")));
+ return maybe_pure_internal_simple_skylines_from_extents (me, Y_AXIS, false, 0, 0, false, to_boolean (get_property (me, "cross-staff")));
}
SCM
@@ -1114,9 +1114,9 @@ SCM
Grob::vertical_skylines_from_stencil (SCM smob)
{
Grob *me = unsmob<Grob> (smob);
- Real pad = robust_scm2double (me->get_property ("skyline-horizontal-padding"), 0.0);
- SCM rot = me->get_property ("rotation");
- SCM out = Stencil::skylines_from_stencil (me->get_property ("stencil"),
+ Real pad = robust_scm2double (get_property (me, "skyline-horizontal-padding"), 0.0);
+ SCM rot = get_property (me, "rotation");
+ SCM out = Stencil::skylines_from_stencil (get_property (me, "stencil"),
pad, rot, X_AXIS);
return out;
@@ -1127,9 +1127,9 @@ SCM
Grob::horizontal_skylines_from_stencil (SCM smob)
{
Grob *me = unsmob<Grob> (smob);
- Real pad = robust_scm2double (me->get_property ("skyline-vertical-padding"), 0.0);
- SCM rot = me->get_property ("rotation");
- SCM out = Stencil::skylines_from_stencil (me->get_property ("stencil"),
+ Real pad = robust_scm2double (get_property (me, "skyline-vertical-padding"), 0.0);
+ SCM rot = get_property (me, "rotation");
+ SCM out = Stencil::skylines_from_stencil (get_property (me, "stencil"),
pad, rot, Y_AXIS);
return out;
@@ -1155,7 +1155,7 @@ Grob::internal_skylines_from_element_stencils (Grob *me, Axis a, bool pure, int
Skyline_pair res;
for (vsize i = 0; i < elts.size (); i++)
{
- Skyline_pair *skyp = unsmob<Skyline_pair> (elts[i]->get_maybe_pure_property (a == X_AXIS ? "vertical-skylines" : "horizontal-skylines", pure, beg, end));
+ Skyline_pair *skyp = unsmob<Skyline_pair> (get_maybe_pure_property (elts[i], a == X_AXIS ? "vertical-skylines" : "horizontal-skylines", pure, beg, end));
if (skyp)
{
/*
« no previous file with comments | « lily/stem-tremolo.cc ('k') | lily/stream-event.cc » ('j') | no next file with comments »

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