summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-mem.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
commitc41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch)
tree764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/tilereg-mem.cc
parentb80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff)
downloadcrawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz
crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/tilereg-mem.cc')
-rw-r--r--crawl-ref/source/tilereg-mem.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/tilereg-mem.cc b/crawl-ref/source/tilereg-mem.cc
index f78697bb84..8203743aef 100644
--- a/crawl-ref/source/tilereg-mem.cc
+++ b/crawl-ref/source/tilereg-mem.cc
@@ -56,7 +56,7 @@ int MemoriseRegion::handle_mouse(MouseEvent &event)
{
unsigned int item_idx;
if (!place_cursor(event, item_idx))
- return (0);
+ return 0;
const spell_type spell = (spell_type) m_items[item_idx].idx;
if (event.button == MouseEvent::LEFT)
@@ -75,7 +75,7 @@ int MemoriseRegion::handle_mouse(MouseEvent &event)
redraw_screen();
return CK_MOUSE_CMD;
}
- return (0);
+ return 0;
}
bool MemoriseRegion::update_tab_tip_text(std::string &tip, bool active)
@@ -87,17 +87,17 @@ bool MemoriseRegion::update_tab_tip_text(std::string &tip, bool active)
prefix1, "Display spells in carried books",
prefix2, "Memorise spells");
- return (true);
+ return true;
}
bool MemoriseRegion::update_tip_text(std::string& tip)
{
if (m_cursor == NO_CURSOR)
- return (false);
+ return false;
unsigned int item_idx = cursor_index();
if (item_idx >= m_items.size() || m_items[item_idx].empty())
- return (false);
+ return false;
int flag = m_items[item_idx].flag;
std::vector<command_type> cmd;
@@ -112,7 +112,7 @@ bool MemoriseRegion::update_tip_text(std::string& tip)
tip += "\n[R-Click] Describe";
insert_commands(tip, cmd);
- return (true);
+ return true;
}
void MemoriseRegion::update()