From 07709472a29e1dca1b12e0feb51b5e596b6b2002 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Fri, 27 Nov 2009 19:18:08 -0800 Subject: ShoppingList: pass level_pos* as const --- crawl-ref/source/shopping.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/shopping.h') diff --git a/crawl-ref/source/shopping.h b/crawl-ref/source/shopping.h index 20527d734c..5ff854159e 100644 --- a/crawl-ref/source/shopping.h +++ b/crawl-ref/source/shopping.h @@ -36,15 +36,16 @@ class ShoppingList public: ShoppingList(); - bool add_thing(const item_def &item, int cost, level_pos* pos = NULL); + bool add_thing(const item_def &item, int cost, + const level_pos* pos = NULL); bool add_thing(std::string desc, std::string buy_verb, int cost, - level_pos* pos = NULL); + const level_pos* pos = NULL); - bool is_on_list(const item_def &item, level_pos* pos = NULL) const; - bool is_on_list(std::string desc, level_pos* pos = NULL) const; + bool is_on_list(const item_def &item, const level_pos* pos = NULL) const; + bool is_on_list(std::string desc, const level_pos* pos = NULL) const; - bool del_thing(const item_def &item, level_pos* pos = NULL); - bool del_thing(std::string desc, level_pos* pos = NULL); + bool del_thing(const item_def &item, const level_pos* pos = NULL); + bool del_thing(std::string desc, const level_pos* pos = NULL); unsigned int cull_identical_items(const item_def& item, long cost = -1); -- cgit v1.2.3-54-g00ecf