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/message.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/message.cc')
-rw-r--r-- | crawl-ref/source/message.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/crawl-ref/source/message.cc b/crawl-ref/source/message.cc index 3a141629c8..868a37b33a 100644 --- a/crawl-ref/source/message.cc +++ b/crawl-ref/source/message.cc @@ -91,7 +91,7 @@ struct message_item operator bool() const { - return (repeats > 0); + return repeats > 0; } string pure_text() const @@ -105,7 +105,7 @@ struct message_item string rep = ""; if (repeats > 1) rep = make_stringf(" x%d", repeats); - return (text + rep); + return text + rep; } // Tries to condense the argument into this message. @@ -164,7 +164,7 @@ static int _mod(int num, int denom) { ASSERT(denom > 0); div_t res = div(num, denom); - return (res.rem >= 0 ? res.rem : res.rem + denom); + return res.rem >= 0 ? res.rem : res.rem + denom; } template <typename T, int SIZE> @@ -369,7 +369,7 @@ class message_window if (!Options.clear_messages && !more_enabled()) { scroll(n - space); - return (s + n - space); + return s + n - space; } else { @@ -434,12 +434,12 @@ public: bool first_col_more() const { - return (use_first_col() && Options.small_more); + return use_first_col() && Options.small_more; } bool use_first_col() const { - return (!Options.clear_messages); + return !Options.clear_messages; } void set_starting_line() @@ -546,7 +546,7 @@ public: bool any_messages() { - return (next_line > input_line); + return next_line > input_line; } /* @@ -1535,9 +1535,9 @@ void more(bool user_forced) static bool is_channel_dumpworthy(msg_channel_type channel) { - return (channel != MSGCH_EQUIPMENT - && channel != MSGCH_DIAGNOSTICS - && channel != MSGCH_TUTORIAL); + return channel != MSGCH_EQUIPMENT + && channel != MSGCH_DIAGNOSTICS + && channel != MSGCH_TUTORIAL; } void clear_message_store() |