]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.4
authorfred <fred>
Thu, 31 Oct 1996 15:06:03 +0000 (15:06 +0000)
committerfred <fred>
Thu, 31 Oct 1996 15:06:03 +0000 (15:06 +0000)
flower/cursor.hh
flower/cursor.inl

index cff93c68ce4edfdde8af8b192acf99a8b4ffe4e9..1c61b1a76cd8fa6880fdc813e2abdc164dd9b172 100644 (file)
@@ -11,7 +11,10 @@ template<class T>
 class Cursor 
 {
  public:
-    Cursor( List<T>& list, Link<T>* pointer = 0 );
+    Cursor( const List<T>& list, Link<T>* pointer = 0 );
+    /** this isn't true, actually, #list# surely isn't const, but I get
+      tired of the warning messages.  */
+    
     Cursor( const Cursor<T>& cursor );
     
     /// return current T
@@ -100,17 +103,8 @@ private:
 
 
 /*
-  comparations.
+  comparisons.
   */
-
-
-
-
-
-
-
-
-
 #include "compare.hh"
 
 template<class T>
index a4e03492b536bb6b8e7a5dbbf334800762de1489..bdc242590f7488382820f566df1047be1942f26f 100644 (file)
@@ -6,12 +6,11 @@
 
 template<class T>
 inline
-Cursor<T>::Cursor( List<T>& list, Link<T>* pointer ) : 
-    list_( list )
+Cursor<T>::Cursor( const List<T>& list, Link<T>* pointer ) : 
+    list_((List<T>&) list )
 {
     if ( list.size() )
         pointer_ = pointer ? pointer : list.top_;
-    //list.top().pointer_; // ARGH! recursion.
     else
         pointer_ = pointer;
 }