From: fred Date: Thu, 31 Oct 1996 15:06:03 +0000 (+0000) Subject: flower-1.0.4 X-Git-Tag: release/1.5.59~6997 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0e74754f4b60be18b30fb1b98a1f4f00678906bf;p=lilypond.git flower-1.0.4 --- diff --git a/flower/cursor.hh b/flower/cursor.hh index cff93c68ce..1c61b1a76c 100644 --- a/flower/cursor.hh +++ b/flower/cursor.hh @@ -11,7 +11,10 @@ template class Cursor { public: - Cursor( List& list, Link* pointer = 0 ); + Cursor( const List& list, Link* pointer = 0 ); + /** this isn't true, actually, #list# surely isn't const, but I get + tired of the warning messages. */ + Cursor( const Cursor& cursor ); /// return current T @@ -100,17 +103,8 @@ private: /* - comparations. + comparisons. */ - - - - - - - - - #include "compare.hh" template diff --git a/flower/cursor.inl b/flower/cursor.inl index a4e03492b5..bdc242590f 100644 --- a/flower/cursor.inl +++ b/flower/cursor.inl @@ -6,12 +6,11 @@ template inline -Cursor::Cursor( List& list, Link* pointer ) : - list_( list ) +Cursor::Cursor( const List& list, Link* pointer ) : + list_((List&) list ) { if ( list.size() ) pointer_ = pointer ? pointer : list.top_; - //list.top().pointer_; // ARGH! recursion. else pointer_ = pointer; }