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/libutil.h | |
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/libutil.h')
-rw-r--r-- | crawl-ref/source/libutil.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/libutil.h b/crawl-ref/source/libutil.h index 29377034d0..f4444c739e 100644 --- a/crawl-ref/source/libutil.h +++ b/crawl-ref/source/libutil.h @@ -41,18 +41,18 @@ static inline int unscale_round_up(int number, int scale) // Chinese rod numerals are _not_ digits for our purposes. static inline bool isadigit(int c) { - return (c >= '0' && c <= '9'); + return c >= '0' && c <= '9'; } // 'รค' is a letter, but not a valid inv slot/etc. static inline bool isalower(int c) { - return (c >= 'a' && c <= 'z'); + return c >= 'a' && c <= 'z'; } static inline bool isaupper(int c) { - return (c >= 'A' && c <= 'Z'); + return c >= 'A' && c <= 'Z'; } static inline bool isaalpha(int c) @@ -131,14 +131,14 @@ string trimmed_string(string s); static inline bool starts_with(const string &s, const string &prefix) { - return (s.rfind(prefix, 0) != string::npos); + return s.rfind(prefix, 0) != string::npos; } static inline bool ends_with(const string &s, const string &suffix) { if (s.length() < suffix.length()) return false; - return (s.find(suffix, s.length() - suffix.length()) != string::npos); + return s.find(suffix, s.length() - suffix.length()) != string::npos; } // Splits string 's' on the separator 'sep'. If trim == true, trims each |