TSAGE: Simplified the new Saver::getObjectCount method
This commit is contained in:
parent
95b4713ffa
commit
b7c9bf4b33
1 changed files with 1 additions and 6 deletions
|
@ -350,12 +350,7 @@ int Saver::blockIndexOf(SavedObject *p) {
|
||||||
* Returns the number of objects in the object list registry
|
* Returns the number of objects in the object list registry
|
||||||
*/
|
*/
|
||||||
int Saver::getObjectCount() const {
|
int Saver::getObjectCount() const {
|
||||||
int count = 0;
|
return _objList.size();
|
||||||
Common::List<SavedObject *>::const_iterator i;
|
|
||||||
|
|
||||||
for (i = _objList.begin(); i != _objList.end(); ++i, ++count)
|
|
||||||
;
|
|
||||||
return count;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue