From 1f8b875cc69a2aebd9bafae4d19faa4142a61e30 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Fri, 8 Dec 2006 18:39:02 +0100 Subject: [PATCH] const correctness for Paper_column::get_rank () --- lily/include/paper-column.hh | 2 +- lily/paper-column.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lily/include/paper-column.hh b/lily/include/paper-column.hh index 542bd86e2b..be6ab9378d 100644 --- a/lily/include/paper-column.hh +++ b/lily/include/paper-column.hh @@ -43,7 +43,7 @@ public: DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM)); DECLARE_GROB_INTERFACE(); - static int get_rank (Grob *); + static int get_rank (Grob const *); static bool is_musical (Grob *); static Moment when_mom (Grob *); static bool is_used (Grob *); diff --git a/lily/paper-column.cc b/lily/paper-column.cc index 78b09c3875..2636b20fe4 100644 --- a/lily/paper-column.cc +++ b/lily/paper-column.cc @@ -34,9 +34,9 @@ Paper_column::do_break_processing () } int -Paper_column::get_rank (Grob *me) +Paper_column::get_rank (Grob const *me) { - return dynamic_cast (me)->rank_; + return dynamic_cast (me)->rank_; } System * -- 2.39.5