TSAGE: Simplified the new Saver::getObjectCount method

This commit is contained in:
Paul Gilbert 2011-04-19 21:33:56 +10:00
parent 95b4713ffa
commit b7c9bf4b33

View file

@ -350,12 +350,7 @@ int Saver::blockIndexOf(SavedObject *p) {
* Returns the number of objects in the object list registry
*/
int Saver::getObjectCount() const {
int count = 0;
Common::List<SavedObject *>::const_iterator i;
for (i = _objList.begin(); i != _objList.end(); ++i, ++count)
;
return count;
return _objList.size();
}
/**