diff options
author | David Kastrup <dak@gnu.org> | 2014-07-25 19:00:42 +0200 |
---|---|---|
committer | David Kastrup <dak@gnu.org> | 2014-08-02 16:51:55 +0200 |
commit | 5bbfc22fce036b9b69df5e420de93e11da23c05e (patch) | |
tree | 7a7f3c695cb242bc365f04b955b01bb48216e0e8 /lily/percent-repeat-item.cc | |
parent | e223f29418201d07dc1637e54a47e9757f91e86a (diff) |
unsmob_pitch -> Pitch::unsmob and related
This is part of moving away from implementing LilyPond infrastructure
via the C preprocessor rather than C++ features since C++ features tend
to be more transparent to IDEs, debuggers, editors, and newcomers.
sed -i "$(git grep -h DECLARE_UNSMOB|sed 's/.*(\(.*\), \(.*\)).*/s\/unsmob_\2\\b\/\1::unsmob\/g/')" $(git grep -l unsmob_)
sed -i '/^DECLARE_UNSMOB/d' `git grep -l DECLARE_UNSMOB`
git checkout Documentation/misc/CHANGES-1.3
(the changes to the CHANGES file are not useful).
The definition of DECLARE_UNSMOB is removed in a separate commit.
Diffstat (limited to 'lily/percent-repeat-item.cc')
-rw-r--r-- | lily/percent-repeat-item.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lily/percent-repeat-item.cc b/lily/percent-repeat-item.cc index faf14c40f3..c4b9a70d36 100644 --- a/lily/percent-repeat-item.cc +++ b/lily/percent-repeat-item.cc @@ -69,7 +69,7 @@ MAKE_SCHEME_CALLBACK (Percent_repeat_item_interface, double_percent, 1); SCM Percent_repeat_item_interface::double_percent (SCM grob) { - Grob *me = unsmob_grob (grob); + Grob *me = Grob::unsmob (grob); Stencil m = x_percent (me, 2); m.translate_axis (-m.extent (X_AXIS).center (), X_AXIS); return m.smobbed_copy (); @@ -79,7 +79,7 @@ MAKE_SCHEME_CALLBACK (Percent_repeat_item_interface, beat_slash, 1); SCM Percent_repeat_item_interface::beat_slash (SCM grob) { - Grob *me = unsmob_grob (grob); + Grob *me = Grob::unsmob (grob); Stream_event *cause = unsmob_stream_event (me->get_property ("cause")); int count = robust_scm2int (cause->get_property ("slash-count"), 1); |