diff options
| author | Max Horn | 2006-04-25 19:20:57 +0000 |
|---|---|---|
| committer | Max Horn | 2006-04-25 19:20:57 +0000 |
| commit | 62dce81acc63472c7bf0d1b0681908a617cea150 (patch) | |
| tree | f580986a1b3125415c11dc1f13ef5ebc09c60348 /common | |
| parent | d5c8a791a6abc578deacded063ac50d58d3fadad (diff) | |
| download | scummvm-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.h | 2 |
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 |
