aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2006-04-25 19:20:57 +0000
committerMax Horn2006-04-25 19:20:57 +0000
commit62dce81acc63472c7bf0d1b0681908a617cea150 (patch)
treef580986a1b3125415c11dc1f13ef5ebc09c60348 /common
parentd5c8a791a6abc578deacded063ac50d58d3fadad (diff)
downloadscummvm-rg350-62dce81acc63472c7bf0d1b0681908a617cea150.tar.gz
scummvm-rg350-62dce81acc63472c7bf0d1b0681908a617cea150.tar.bz2
scummvm-rg350-62dce81acc63472c7bf0d1b0681908a617cea150.zip
HashMap::size does not modify the state of the hashmap, so it can be declared const (allowing it to be used on const hashmaps, too)
svn-id: r22156
Diffstat (limited to 'common')
-rw-r--r--common/hashmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hashmap.h b/common/hashmap.h
index b8df274f09..842296db99 100644
--- a/common/hashmap.h
+++ b/common/hashmap.h
@@ -172,7 +172,7 @@ public:
size_t erase(const Key &key);
- uint size() { return _nele; }
+ uint size() const { return _nele; }
const_iterator begin() const {
// Find and return the first non-empty entry