/[svn]/libgig/trunk/src/gig.cpp
ViewVC logotype

Diff of /libgig/trunk/src/gig.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3937 by schoenebeck, Thu Jun 17 10:59:54 2021 UTC revision 3939 by schoenebeck, Thu Jun 17 12:04:54 2021 UTC
# Line 6204  namespace { Line 6204  namespace {
6204       */       */
6205      void Group::MoveAll() {      void Group::MoveAll() {
6206          // get "that" other group first          // get "that" other group first
6207            size_t i = 0;
6208          Group* pOtherGroup = NULL;          Group* pOtherGroup = NULL;
6209          for (pOtherGroup = pFile->GetFirstGroup(); pOtherGroup; pOtherGroup = pFile->GetNextGroup()) {          for (pOtherGroup = pFile->GetGroup(i); pOtherGroup;
6210                 pOtherGroup = pFile->GetGroup(++i))
6211            {
6212              if (pOtherGroup != this) break;              if (pOtherGroup != this) break;
6213          }          }
6214          if (!pOtherGroup) throw Exception(          if (!pOtherGroup) throw Exception(
# Line 6986  namespace { Line 6989  namespace {
6989       */       */
6990      Group* File::GetGroup(String name) {      Group* File::GetGroup(String name) {
6991          if (!pGroups) LoadGroups();          if (!pGroups) LoadGroups();
6992          GroupsIterator = pGroups->begin();          size_t i = 0;
6993          for (uint i = 0; GroupsIterator != pGroups->end(); ++GroupsIterator, ++i)          for (Group* pGroup = GetGroup(i); pGroup; pGroup = GetGroup(++i))
6994              if ((*GroupsIterator)->Name == name) return *GroupsIterator;              if (pGroup->Name == name) return pGroup;
6995          return NULL;          return NULL;
6996      }      }
6997    

Legend:
Removed from v.3937  
changed lines
  Added in v.3939

  ViewVC Help
Powered by ViewVC