summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-tab.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-11-15 17:26:11 -0500
committerNeil Moore <neil@s-z.org>2013-11-15 17:26:11 -0500
commite7b96ffa70ca93a3cea9e2cead6f40085a6a2d68 (patch)
treeec3e4b86d3b4ed96250f735b4e597e83ee886de8 /crawl-ref/source/tilereg-tab.cc
parentb65bf4d5198c19095e3084a88983680df19ec5ee (diff)
downloadcrawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.tar.gz
crawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.zip
More formatting fixes for return (...);
Diffstat (limited to 'crawl-ref/source/tilereg-tab.cc')
-rw-r--r--crawl-ref/source/tilereg-tab.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/tilereg-tab.cc b/crawl-ref/source/tilereg-tab.cc
index a92f5480b2..fcedce0497 100644
--- a/crawl-ref/source/tilereg-tab.cc
+++ b/crawl-ref/source/tilereg-tab.cc
@@ -171,7 +171,7 @@ int TabbedRegion::num_tabs() const
bool TabbedRegion::invalid_index(int idx) const
{
- return (idx < 0 || (int)m_tabs.size() <= idx);
+ return idx < 0 || (int)m_tabs.size() <= idx;
}
void TabbedRegion::enable_tab(int idx)
@@ -380,7 +380,7 @@ int TabbedRegion::handle_mouse(MouseEvent &event)
if (!active_is_valid())
return 0;
- return (get_tab_region(active_tab())->handle_mouse(event));
+ return get_tab_region(active_tab())->handle_mouse(event);
}
bool TabbedRegion::update_tab_tip_text(string &tip, bool active)
@@ -400,7 +400,7 @@ bool TabbedRegion::update_tip_text(string &tip)
return reg->update_tab_tip_text(tip, m_mouse_tab == m_active);
}
- return (get_tab_region(active_tab())->update_tip_text(tip));
+ return get_tab_region(active_tab())->update_tip_text(tip);
}
bool TabbedRegion::update_alt_text(string &alt)
@@ -408,7 +408,7 @@ bool TabbedRegion::update_alt_text(string &alt)
if (!active_is_valid())
return false;
- return (get_tab_region(active_tab())->update_alt_text(alt));
+ return get_tab_region(active_tab())->update_alt_text(alt);
}
int TabbedRegion::find_tab(string tab_name) const