mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 15:18:11 +00:00
TSAGE: Hopeful bugfix for compilation errors on other systems
This commit is contained in:
parent
734e4f628b
commit
31a7f64968
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user