- Timestamp:
- Aug 8, 2011, 10:19:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/core/ConfigFileManager.cc
r8806 r8831 123 123 for (std::list<ConfigFileEntry*>::const_iterator it = this->entries_.begin(); it != this->entries_.end(); ++it) 124 124 if ((*it)->getName() == name) 125 if ((*it)->getIndex() > size) 126 size = (*it)->getIndex(); 127 if (size == 0) 128 return 0; 129 else 130 return (size + 1); 125 if ((*it)->getIndex() >= size) 126 size = (*it)->getIndex() + 1; 127 return size; 131 128 } 132 129
Note: See TracChangeset
for help on using the changeset viewer.