diff options
Diffstat (limited to 'flower/pcursor.hh')
-rw-r--r-- | flower/pcursor.hh | 14 |
1 files changed, 12 insertions, 2 deletions
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<class T> @@ -13,14 +22,15 @@ struct PCursor : public Cursor<T> { PCursor<T> operator +( int no) const { return PCursor<T> (Cursor<T>::operator+(no)); } - PCursor(List<T> & l) : Cursor<T> (l) {} + PCursor(const List<T> & l) : Cursor<T> (l) {} PCursor( const Cursor<T>& cursor ) : Cursor<T>(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 |