]> git.donarmstrong.com Git - lilypond.git/commitdiff
const correctness for Paper_column::get_rank ()
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 8 Dec 2006 17:39:02 +0000 (18:39 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 8 Dec 2006 17:39:02 +0000 (18:39 +0100)
lily/include/paper-column.hh
lily/paper-column.cc

index 542bd86e2b1760f2bff808f5fc169ee3e6355761..be6ab9378dbca9c3e4653160b974366c0564140d 100644 (file)
@@ -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 *);
index 78b09c3875ba254781959298b420e874565d5813..2636b20fe4bccee354e4b9b915f060f8e6f082af 100644 (file)
@@ -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<Paper_column *> (me)->rank_;
+  return dynamic_cast<Paper_column const *> (me)->rank_;
 }
 
 System *