Пример #1
0
void CPVRChannelGroups::RemoveFromAllGroups(CPVRChannel *channel)
{
  /* start at position 2 because channels are only deleted from non-system groups.
   system groups are entries 0 and 1 */
  for (unsigned int iGroupPtr = 2; iGroupPtr < size(); iGroupPtr++)
  {
    CPVRChannelGroup *group = (CPVRChannelGroup *) at(iGroupPtr);
    group->RemoveFromGroup(*channel);
  }
}