diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-14 17:21:58 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-15 21:03:43 +0100 |
commit | 04ab49bde8bfadd87c7897b3319238b1da561812 (patch) | |
tree | afd986d551f519de290313bb485d0ee1bfa743c2 /crawl-ref/source/viewgeom.cc | |
parent | 51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff) | |
download | crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip |
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/viewgeom.cc')
-rw-r--r-- | crawl-ref/source/viewgeom.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/viewgeom.cc b/crawl-ref/source/viewgeom.cc index 587a750839..b75460376c 100644 --- a/crawl-ref/source/viewgeom.cc +++ b/crawl-ref/source/viewgeom.cc @@ -145,7 +145,7 @@ class _inline_layout : public _layout int leftover_x() const { int width = (viewsz.x + hud_gutter + max(hudsz.x, mlistsz.x)); - return (termsz.x - width); + return termsz.x - width; } int leftover_rightcol_y() const { return termsz.y-hudsz.y-mlistsz.y-msgsz.y; } int leftover_leftcol_y() const { return termsz.y-viewsz.y-msgsz.y; } @@ -210,13 +210,13 @@ class _mlist_col_layout : public _layout int leftover_x() const { int width = (mlistsz.x + MLIST_GUTTER + viewsz.x + hud_gutter + hudsz.x); - return (termsz.x - width); + return termsz.x - width; } int leftover_y() const { const int top_y = max(max(viewsz.y, hudsz.y), mlistsz.y); const int height = top_y + msgsz.y; - return (termsz.y - height); + return termsz.y - height; } }; @@ -249,7 +249,7 @@ void crawl_view_buffer::resize(const coord_def &sz) bool crawl_view_buffer::empty() const { - return (m_size.x * m_size.y <= 0); + return m_size.x * m_size.y <= 0; } const crawl_view_buffer &crawl_view_buffer::operator = (const crawl_view_buffer &rhs) |