6956 |
* @param index - number of the sought group (0..n) |
* @param index - number of the sought group (0..n) |
6957 |
* @returns sought group or NULL if there's no such group |
* @returns sought group or NULL if there's no such group |
6958 |
*/ |
*/ |
6959 |
Group* File::GetGroup(uint index) { |
Group* File::GetGroup(size_t index) { |
6960 |
if (!pGroups) LoadGroups(); |
if (!pGroups) LoadGroups(); |
6961 |
GroupsIterator = pGroups->begin(); |
GroupsIterator = pGroups->begin(); |
6962 |
for (uint i = 0; GroupsIterator != pGroups->end(); i++) { |
for (size_t i = 0; GroupsIterator != pGroups->end(); i++) { |
6963 |
if (i == index) return *GroupsIterator; |
if (i == index) return *GroupsIterator; |
6964 |
++GroupsIterator; |
++GroupsIterator; |
6965 |
} |
} |