diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
commit | c41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch) | |
tree | 764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/ng-input.cc | |
parent | b80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff) | |
download | crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip |
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/ng-input.cc')
-rw-r--r-- | crawl-ref/source/ng-input.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/ng-input.cc b/crawl-ref/source/ng-input.cc index fb3cf3e95d..b551ad14d0 100644 --- a/crawl-ref/source/ng-input.cc +++ b/crawl-ref/source/ng-input.cc @@ -69,11 +69,11 @@ bool is_good_name(const std::string& name, bool blankOK, bool verbose) if (name.empty()) { if (blankOK) - return (true); + return true; if (verbose) cprintf("\nThat's a silly name!\n"); - return (false); + return false; } return (validate_player_name(name, verbose)); @@ -99,11 +99,11 @@ static bool _read_player_name(std::string &name) if (!ret) { name = buf; - return (true); + return true; } if (key_is_escape(ret)) - return (false); + return false; // Go back and prompt the user. } @@ -138,7 +138,7 @@ bool validate_player_name(const std::string &name, bool verbose) { if (verbose) cprintf("\nSorry, that name gives your OS a headache.\n"); - return (false); + return false; } #endif @@ -146,7 +146,7 @@ bool validate_player_name(const std::string &name, bool verbose) { if (verbose) cprintf("\nThat name is too long.\n"); - return (false); + return false; } ucs_t c; @@ -166,9 +166,9 @@ bool validate_player_name(const std::string &name, bool verbose) "and underscores only, please." "\n"); } - return (false); + return false; } } - return (true); + return true; } |