From be90392652dd0758a48a8ee9fdc4450053b1c577 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 10 Feb 1997 18:16:53 +0000 Subject: [PATCH] flower-1.0.27 --- flower/pcursor.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flower/pcursor.hh b/flower/pcursor.hh index 8498aa9e0d..1215270e3b 100644 --- a/flower/pcursor.hh +++ b/flower/pcursor.hh @@ -1,4 +1,3 @@ - /* pcursor.hh -- part of flowerlib @@ -8,15 +7,16 @@ #ifndef PCURSOR_HH #define PCURSOR_HH +#include "plist.hh" +#include "cursor.hh" -/// cursor to go with PointerList -/** +/** cursor to go with PointerList. don't create PointerList's. This cursor is just an interface class for Cursor. It takes care of the appropriate type casts */ template -struct PCursor : private Cursor { +class PCursor : private Cursor { friend class IPointerList; /// delete contents @@ -45,7 +45,7 @@ public: PCursor operator +( int no) const {return Cursor::operator+(no);} PCursor(const PointerList & l) : Cursor (l) {} PCursor( const Cursor& cursor ) : Cursor(cursor) { } - void* vptr() const { return * ((Cursor &) *this); } + void* vptr() const { return *((Cursor &) *this); } // should return T& ? T ptr() const { return (T) vptr(); } -- 2.39.5