summaryrefslogtreecommitdiff
path: root/lily/spanner.cc
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2014-07-27 15:21:22 +0200
committerDavid Kastrup <dak@gnu.org>2014-08-02 16:52:54 +0200
commit9066eeede909ace56324c905217c5b585ba42f90 (patch)
tree0685e3f25bfb46e1b4594cf55de4af64b7af3a9b /lily/spanner.cc
parentef250dfc8cd4a5574a5059249e19208a3b068714 (diff)
Replace remaining uses of unsmob_xxx with Xxx::unsmob
This runs sed -i 's/unsmob_\(engraver\|global_context\|input\|item\|music\|paper_score\|performance\|performer\|spanner\|stream_event\)\b/\u\1::unsmob/g' $(git grep -l unsmob_ lily) as the mechanical part of the conversion. A separate commit provides the required definitions.
Diffstat (limited to 'lily/spanner.cc')
-rw-r--r--lily/spanner.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lily/spanner.cc b/lily/spanner.cc
index 80741e4b95..52745136fc 100644
--- a/lily/spanner.cc
+++ b/lily/spanner.cc
@@ -422,7 +422,7 @@ MAKE_SCHEME_CALLBACK (Spanner, calc_normalized_endpoints, 1);
SCM
Spanner::calc_normalized_endpoints (SCM smob)
{
- Spanner *me = unsmob_spanner (smob);
+ Spanner *me = Spanner::unsmob (smob);
SCM result = SCM_EOL;
Spanner *orig = dynamic_cast<Spanner *> (me->original ());
@@ -466,7 +466,7 @@ Spanner::calc_normalized_endpoints (SCM smob)
}
Spanner *
-unsmob_spanner (SCM s)
+Spanner::unsmob (SCM s)
{
return dynamic_cast<Spanner *> (Grob::unsmob (s));
}
@@ -475,7 +475,7 @@ MAKE_SCHEME_CALLBACK (Spanner, bounds_width, 1);
SCM
Spanner::bounds_width (SCM grob)
{
- Spanner *me = unsmob_spanner (grob);
+ Spanner *me = Spanner::unsmob (grob);
Grob *common = me->get_bound (LEFT)->common_refpoint (me->get_bound (RIGHT), X_AXIS);
@@ -491,7 +491,7 @@ MAKE_SCHEME_CALLBACK (Spanner, kill_zero_spanned_time, 1);
SCM
Spanner::kill_zero_spanned_time (SCM grob)
{
- Spanner *me = unsmob_spanner (grob);
+ Spanner *me = Spanner::unsmob (grob);
/*
Remove the line or hairpin at the start of the line. For
piano voice indicators, it makes no sense to have them at