summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/show.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-14 17:21:58 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-15 21:03:43 +0100
commit04ab49bde8bfadd87c7897b3319238b1da561812 (patch)
treeafd986d551f519de290313bb485d0ee1bfa743c2 /crawl-ref/source/show.cc
parent51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff)
downloadcrawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz
crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/show.cc')
-rw-r--r--crawl-ref/source/show.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/show.cc b/crawl-ref/source/show.cc
index 1914bf6e24..a0c562d6d3 100644
--- a/crawl-ref/source/show.cc
+++ b/crawl-ref/source/show.cc
@@ -93,11 +93,11 @@ bool show_type::operator < (const show_type &other) const
switch (cls)
{
case SH_FEATURE:
- return (feat < other.feat);
+ return feat < other.feat;
case SH_ITEM:
- return (item < other.item);
+ return item < other.item;
case SH_MONSTER:
- return (mons < other.mons);
+ return mons < other.mons;
default:
return false;
}
@@ -212,7 +212,7 @@ static show_item_type _item_to_show_code(const item_def &item)
case OBJ_FOOD: return SHOW_ITEM_FOOD;
case OBJ_SCROLLS: return SHOW_ITEM_SCROLL;
case OBJ_JEWELLERY:
- return (jewellery_is_amulet(item) ? SHOW_ITEM_AMULET : SHOW_ITEM_RING);
+ return jewellery_is_amulet(item) ? SHOW_ITEM_AMULET : SHOW_ITEM_RING;
case OBJ_POTIONS: return SHOW_ITEM_POTION;
case OBJ_BOOKS: return SHOW_ITEM_BOOK;
case OBJ_STAVES: return SHOW_ITEM_STAVE;