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/store.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/store.cc')
-rw-r--r-- | crawl-ref/source/store.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/store.cc b/crawl-ref/source/store.cc index 501385c6f4..5d9f769853 100644 --- a/crawl-ref/source/store.cc +++ b/crawl-ref/source/store.cc @@ -1340,7 +1340,7 @@ static std::map<std::string, int> accesses; bool CrawlHashTable::exists(const std::string &key) const { if (hash_map == NULL) - return (false); + return false; ACCESS(key); ASSERT_VALIDITY(); @@ -1430,7 +1430,7 @@ CrawlStoreValue& CrawlHashTable::get_value(const std::string &key) (*hash_map)[key] = CrawlStoreValue(); CrawlStoreValue &val = (*hash_map)[key]; - return (val); + return val; } return (i->second); @@ -1462,7 +1462,7 @@ const CrawlStoreValue& CrawlHashTable::get_value(const std::string &key) const hash_size CrawlHashTable::size() const { if (hash_map == NULL) - return (0); + return 0; return hash_map->size(); } @@ -1470,7 +1470,7 @@ hash_size CrawlHashTable::size() const bool CrawlHashTable::empty() const { if (hash_map == NULL) - return (true); + return true; return hash_map->empty(); } |