From 3dcc9d0f7bccea62a912b438cac19e7d8737ec3c Mon Sep 17 00:00:00 2001 From: haranp Date: Mon, 16 Jun 2008 07:08:18 +0000 Subject: More cleanups and use of stack_iterator. Added operator-> to stack_iterator and radius_iterator. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5876 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/stuff.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/stuff.h') diff --git a/crawl-ref/source/stuff.h b/crawl-ref/source/stuff.h index 3bb0221fca..02fa98aa5e 100644 --- a/crawl-ref/source/stuff.h +++ b/crawl-ref/source/stuff.h @@ -60,6 +60,7 @@ public: operator bool() const; item_def& operator *() const; + item_def* operator->() const; int link() const; const stack_iterator& operator ++ (); @@ -81,6 +82,7 @@ public: void reset(); operator bool() const { return !done(); } coord_def operator *() const; + const coord_def* operator->() const; const radius_iterator& operator ++ (); const radius_iterator& operator -- (); -- cgit v1.2.3-54-g00ecf