]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.7
authorfred <fred>
Fri, 15 Nov 1996 23:29:43 +0000 (23:29 +0000)
committerfred <fred>
Fri, 15 Nov 1996 23:29:43 +0000 (23:29 +0000)
flower/cursor.hh

index 1c61b1a76cd8fa6880fdc813e2abdc164dd9b172..4babf9654516f221d8b11d6fdf4ac248cd9a1fd9 100644 (file)
@@ -16,10 +16,11 @@ class Cursor
       tired of the warning messages.  */
     
     Cursor( const Cursor<T>& cursor );
-    
+
+    T& thing();
     /// return current T
-    T& operator *();           
-    operator T() { return  *(*this); }
+    T& operator *() { return thing(); }
+    operator T() { return thing(); }
     Cursor<T> operator =( const Cursor<T>& c );
 
     /// make cursor with #no# items back
@@ -98,10 +99,6 @@ private:
  */
 
 
-
-
-
-
 /*
   comparisons.
   */
@@ -119,4 +116,4 @@ template_instantiate_compare(Cursor<T>, cursor_compare, template<class T>);
 #include "list.hh"
 #include "cursor.inl"
 
-#endif // __CURSOR_HH //
+#endif // CURSOR_HH