[Scummvm-cvs-logs] SF.net SVN: scummvm: [22156] scummvm/trunk/common/hashmap.h
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Tue Apr 25 12:22:04 CEST 2006
Revision: 22156
Author: fingolfin
Date: 2006-04-25 12:20:57 -0700 (Tue, 25 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22156&view=rev
Log Message:
-----------
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)
Modified Paths:
--------------
scummvm/trunk/common/hashmap.h
Modified: scummvm/trunk/common/hashmap.h
===================================================================
--- scummvm/trunk/common/hashmap.h 2006-04-25 16:30:59 UTC (rev 22155)
+++ scummvm/trunk/common/hashmap.h 2006-04-25 19:20:57 UTC (rev 22156)
@@ -172,7 +172,7 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list