TSAGE: Hopeful bugfix for compilation errors on other systems

This commit is contained in:
Paul Gilbert 2011-08-26 19:19:29 +10:00
parent 734e4f628b
commit 31a7f64968

View File

@ -140,15 +140,15 @@ public:
}
void addBefore(T existingItem, T newItem) {
SynchronizedList<T>::iterator i = this->begin();
while ((i != this->end()) && (*i != existingItem)) ++i;
this->insert(i, newItem);
SynchronizedList<T>::iterator i = Common::List<T>::begin();
while ((i != Common::List<T>::end()) && (*i != existingItem)) ++i;
Common::List<T>::insert(i, newItem);
}
void addAfter(T existingItem, T newItem) {
SynchronizedList<T>::iterator i = this->begin();
while ((i != this->end()) && (*i != existingItem)) ++i;
if (i != this->end()) ++i;
this->insert(i, newItem);
SynchronizedList<T>::iterator i = Common::List<T>::begin();
while ((i != Common::List<T>::end()) && (*i != existingItem)) ++i;
if (i != Common::List<T>::end()) ++i;
Common::List<T>::insert(i, newItem);
}
};