X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fspacing-interface.cc;h=030d02e7272ca63b42df028cad1b85d59d22e9c3;hb=5d84bfad4626892bcffd05adcced53c8a2329047;hp=b7bef8d2c3f59fbc453a2c07e606323c025df27b;hpb=f4abbfff5f0d985a457e15586dbcc3ae473b0dee;p=lilypond.git diff --git a/lily/spacing-interface.cc b/lily/spacing-interface.cc index b7bef8d2c3..030d02e727 100644 --- a/lily/spacing-interface.cc +++ b/lily/spacing-interface.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2007--2014 Joe Neeman + Copyright (C) 2007--2015 Joe Neeman LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -64,10 +64,10 @@ Spacing_interface::skylines (Grob *me, Grob *right_col) if (Item *piece = g->find_prebroken_piece (break_dirs[d])) g = piece; - if (g && Separation_item::has_interface (g) && g->get_column () == columns[d]) + if (has_interface (g) && g->get_column () == columns[d]) { SCM sky_scm = g->get_property ("horizontal-skylines"); - Skyline_pair *sky = Skyline_pair::unsmob (sky_scm); + Skyline_pair *sky = unsmob (sky_scm); extract_grob_set (g, "elements", elts); Grob *ycommon = common_refpoint_of_array (elts, g, Y_AXIS); @@ -108,7 +108,7 @@ Spacing_interface::right_column (Grob *me) if (!me->is_live ()) return 0; - Grob_array *a = Grob_array::unsmob (me->get_object ("right-items")); + Grob_array *a = unsmob (me->get_object ("right-items")); Item *mincol = 0; int min_rank = INT_MAX; for (vsize i = 0; a && i < a->size (); i++) @@ -144,9 +144,9 @@ get_note_columns (vector const &elts) for (vsize i = 0; i < elts.size (); i++) { - if (Note_column::has_interface (elts[i])) + if (has_interface (elts[i])) ret.push_back (dynamic_cast (elts[i])); - else if (Separation_item::has_interface (elts[i])) + else if (has_interface (elts[i])) { extract_grob_set (elts[i], "elements", more_elts); vector ncs = get_note_columns (more_elts);