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/libunix.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/libunix.cc')
-rw-r--r-- | crawl-ref/source/libunix.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index 29a644af15..8f6c8dd91a 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -676,7 +676,7 @@ static int curs_fg_attr(int col) // figure out which colour pair we want const int pair = (fg == 0 && bg == 0) ? 63 : (bg * 8 + fg); - return (COLOR_PAIR(pair) | flags); + return COLOR_PAIR(pair) | flags; } void textcolor(int col) @@ -738,7 +738,7 @@ static int curs_bg_attr(int col) // figure out which colour pair we want const int pair = (fg == 0 && bg == 0) ? 63 : (bg * 8 + fg); - return (COLOR_PAIR(pair) | flags); + return COLOR_PAIR(pair) | flags; } void textbackground(int col) @@ -759,7 +759,7 @@ void gotoxy_sys(int x, int y) typedef cchar_t char_info; static inline bool operator == (const cchar_t &a, const cchar_t &b) { - return (a.attr == b.attr && *a.chars == *b.chars); + return a.attr == b.attr && *a.chars == *b.chars; } static inline char_info character_at(int y, int x) |