Revision 59be6a47 src/source.cpp

View differences:

src/source.cpp
59 59

  
60 60
void Source::unsubscribeAll()
61 61
{
62
  List copy = subscribers;
62
  SinkList copy = subscribers;
63 63

  
64
  for (List::const_iterator i = copy.begin(); i != copy.end(); i++)
64
  for (SinkList::const_iterator i = copy.begin(); i != copy.end(); i++)
65 65
    unsubscribe(*i);
66 66
}
67 67

  
68 68
void Source::sendData(unsigned char *data, unsigned size) const
69 69
{
70
  for (List::const_iterator i = subscribers.begin(); i != subscribers.end(); i++)
70
  for (SinkList::const_iterator i = subscribers.begin(); i != subscribers.end(); i++)
71 71
    (*i)->receiveData(data, size);
72 72
}
73 73

  
......
76 76
  // Kick subscribers with priority < specified priority
77 77
  // Return number of subscribers kicked.
78 78
  int count = 0;
79
  List copy = subscribers;
79
  SinkList copy = subscribers;
80 80

  
81
  for (List::iterator i = copy.begin(); i != copy.end(); i++) {
81
  for (SinkList::iterator i = copy.begin(); i != copy.end(); i++) {
82 82
    Sink *d = *i;
83 83

  
84 84
    if (d->getPriority() < priority) {
......
93 93
{
94 94
  // Return the number of subscribers with priority >= specified priority
95 95
  int count = 0;
96
  for (List::const_iterator i = subscribers.begin(); i != subscribers.end(); i++) {
96
  for (SinkList::const_iterator i = subscribers.begin(); i != subscribers.end(); i++) {
97 97
    const Sink *d = *i;
98 98

  
99 99
    if (d->getPriority() >= priority)
......
106 106
{
107 107
  // Return the maximum subscribed priority
108 108
  int result = INT_MIN;
109
  for (List::const_iterator i = subscribers.begin(); i != subscribers.end(); i++) {
109
  for (SinkList::const_iterator i = subscribers.begin(); i != subscribers.end(); i++) {
110 110
    const Sink *c = *i;
111 111

  
112 112
    if (c->getPriority() > result)

Also available in: Unified diff