diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 13:22:39 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 14:00:11 +0200 |
commit | 68935e461e64eeb85ea44c616d1eab58975b8e20 (patch) | |
tree | 471804168af54b681856211f26fefb5091b34c34 /crawl-ref/source/tilereg-tab.cc | |
parent | 15d548d4ba1148531b8d755d4130962126bccb52 (diff) | |
download | crawl-ref-68935e461e64eeb85ea44c616d1eab58975b8e20.tar.gz crawl-ref-68935e461e64eeb85ea44c616d1eab58975b8e20.zip |
Some more return deparenthesization.
Diffstat (limited to 'crawl-ref/source/tilereg-tab.cc')
-rw-r--r-- | crawl-ref/source/tilereg-tab.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/tilereg-tab.cc b/crawl-ref/source/tilereg-tab.cc index 8b74a7028b..c98b0ecff2 100644 --- a/crawl-ref/source/tilereg-tab.cc +++ b/crawl-ref/source/tilereg-tab.cc @@ -134,7 +134,7 @@ int TabbedRegion::active_tab() const int TabbedRegion::num_tabs() const { - return (m_tabs.size()); + return m_tabs.size(); } bool TabbedRegion::invalid_index(int idx) const @@ -282,14 +282,14 @@ int TabbedRegion::get_mouseover_tab(MouseEvent &event) const int y = event.py - sy; if (x < 0 || x > ox || y < 0 || y > wy) - return (-1); + return -1; for (int i = 0; i < (int)m_tabs.size(); ++i) { if (y >= m_tabs[i].min_y && y <= m_tabs[i].max_y) return i; } - return (-1); + return -1; } int TabbedRegion::handle_mouse(MouseEvent &event) @@ -335,7 +335,7 @@ bool TabbedRegion::update_tip_text(std::string &tip) { GridRegion *reg = m_tabs[m_mouse_tab].reg; if (reg) - return (reg->update_tab_tip_text(tip, m_mouse_tab == m_active)); + return reg->update_tab_tip_text(tip, m_mouse_tab == m_active); } return (get_tab_region(active_tab())->update_tip_text(tip)); |