summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-16 07:08:18 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-16 07:08:18 +0000
commit3dcc9d0f7bccea62a912b438cac19e7d8737ec3c (patch)
tree2a683233ccaee1aa1a5aea3901937a48a8e72f26 /crawl-ref/source/stuff.h
parentf13fb6fd227d1bf21cbef7542c487271a178a77c (diff)
downloadcrawl-ref-3dcc9d0f7bccea62a912b438cac19e7d8737ec3c.tar.gz
crawl-ref-3dcc9d0f7bccea62a912b438cac19e7d8737ec3c.zip
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
Diffstat (limited to 'crawl-ref/source/stuff.h')
-rw-r--r--crawl-ref/source/stuff.h2
1 files changed, 2 insertions, 0 deletions
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 -- ();