summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-12 23:17:08 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-13 00:35:02 -0700
commitb93e6c68bcb4455829fa89a5b33c234e7a452c4c (patch)
treec00be28dbe7adb5f538d51b544e6797f7bb4379e /crawl-ref/source/invent.cc
parentfab44a2728efc2e5134a7b3a844b3d288ca4cab7 (diff)
downloadcrawl-ref-b93e6c68bcb4455829fa89a5b33c234e7a452c4c.tar.gz
crawl-ref-b93e6c68bcb4455829fa89a5b33c234e7a452c4c.zip
invent.{cc,h}: fix meaningless type qualifier on return type
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index aad492a8cf..7d5df507e4 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -105,12 +105,12 @@ const std::string &InvEntry::get_fullname() const
return (text);
}
-const bool InvEntry::is_item_cursed() const
+bool InvEntry::is_item_cursed() const
{
return (item_ident(*item, ISFLAG_KNOW_CURSE) && item_cursed(*item));
}
-const bool InvEntry::is_item_glowing() const
+bool InvEntry::is_item_glowing() const
{
return (!item_ident(*item, ISFLAG_KNOW_TYPE)
&& (get_equip_desc(*item)
@@ -121,7 +121,7 @@ const bool InvEntry::is_item_glowing() const
|| item->base_type == OBJ_BOOKS))));
}
-const bool InvEntry::is_item_ego() const
+bool InvEntry::is_item_ego() const
{
return (item_ident(*item, ISFLAG_KNOW_TYPE) && !is_artefact(*item)
&& item->special != 0
@@ -130,12 +130,12 @@ const bool InvEntry::is_item_ego() const
|| item->base_type == OBJ_ARMOUR));
}
-const bool InvEntry::is_item_art() const
+bool InvEntry::is_item_art() const
{
return (item_ident(*item, ISFLAG_KNOW_TYPE) && is_artefact(*item));
}
-const bool InvEntry::is_item_equipped() const
+bool InvEntry::is_item_equipped() const
{
if (item->link == -1 || item->pos.x != -1 || item->pos.y != -1)
return(false);
@@ -149,7 +149,7 @@ const bool InvEntry::is_item_equipped() const
// Returns values < 0 for edible chunks (non-rotten except for Saprovores),
// 0 for non-chunks, and values > 0 for rotten chunks for non-Saprovores.
-const int InvEntry::item_freshness() const
+int InvEntry::item_freshness() const
{
if (item->base_type != OBJ_FOOD || item->sub_type != FOOD_CHUNK)
return 0;