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/hiscores.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/hiscores.cc')
-rw-r--r-- | crawl-ref/source/hiscores.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc index d0195fc71a..edf78f02e2 100644 --- a/crawl-ref/source/hiscores.cc +++ b/crawl-ref/source/hiscores.cc @@ -526,7 +526,7 @@ static bool _hiscore_same_day(time_t t1, time_t t2) struct tm *d2 = TIME_FN(&t2); - return (d2->tm_mday == day && d2->tm_mon == mon && d2->tm_year == year); + return d2->tm_mday == day && d2->tm_mon == mon && d2->tm_year == year; } static void _hiscore_date_string(time_t time, char buff[INFO_SIZE]) @@ -586,7 +586,7 @@ static bool _hs_read(FILE *scores, scorefile_entry &dest) static int _val_char(char digit) { - return (digit - '0'); + return digit - '0'; } static time_t _parse_time(const string &st) @@ -1784,7 +1784,7 @@ static string _append_sentence_delimiter(const string &sentence, if (lastch == '!' || lastch == '.') return sentence; - return (sentence + delimiter); + return sentence + delimiter; } string @@ -1937,7 +1937,7 @@ string scorefile_entry::death_place(death_desc_verbosity verbosity) const static bool _species_is_undead(int sp) { - return (sp == SP_MUMMY || sp == SP_GHOUL || sp == SP_VAMPIRE); + return sp == SP_MUMMY || sp == SP_GHOUL || sp == SP_VAMPIRE; } string scorefile_entry::death_description(death_desc_verbosity verbosity) const |