From: fred Date: Fri, 1 Nov 1996 16:38:54 +0000 (+0000) Subject: flower-1.0.4 X-Git-Tag: release/1.5.59~6966 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=32adc97dd5c130790eb0512da47d5ecd8b062d01;p=lilypond.git flower-1.0.4 --- diff --git a/flower/pcursor.hh b/flower/pcursor.hh index 8b0b179b4f..eb0e8f15f9 100644 --- a/flower/pcursor.hh +++ b/flower/pcursor.hh @@ -1,4 +1,13 @@ +/* + pcursor.hh -- part of flowerlib + + (c) 1996 Han-Wen Nienhuys&Jan Nieuwenhuizen +*/ + +#ifndef PCURSOR_HH +#define PCURSOR_HH + /// cursor which feels like a pointer template @@ -13,14 +22,15 @@ struct PCursor : public Cursor { PCursor operator +( int no) const { return PCursor (Cursor::operator+(no)); } - PCursor(List & l) : Cursor (l) {} + PCursor(const List & l) : Cursor (l) {} PCursor( const Cursor& cursor ) : Cursor(cursor) { } T operator ->() { return *(*this); } }; /** - HWN: I'd like an operator->(), so here it is. + I like operator->(), so here it is. Cursor to go with pointer list. */ +#endif