Fixed MSVC issues.

This commit is contained in:
Andrew 2013-02-21 12:42:16 -06:00
parent 3649904974
commit 2020d9c24b
2 changed files with 6 additions and 9 deletions

View File

@ -26,9 +26,6 @@
template <typename T>
class SigList : public QList<T>
{
private:
typedef typename QList<T>::iterator iterator;
public:
explicit SigList() : QList<T>() {}
@ -37,11 +34,11 @@ public:
virtual void clear();
virtual void erase(iterator pos);
virtual void erase(iterator first, iterator last);
virtual void erase(typename QList<T>::iterator pos);
virtual void erase(typename QList<T>::iterator first, typename QList<T>::iterator last);
virtual void insert(int i, const T &t);
virtual void insert(iterator before, const T &t);
virtual void insert(typename QList<T>::iterator before, const T &t);
virtual void move(int from, int to);

View File

@ -45,7 +45,7 @@ void SigList<T>::clear()
}
template <typename T>
void SigList<T>::erase(SigList<T>::iterator pos)
void SigList<T>::erase(typename QList<T>::iterator pos)
{
T value = *pos;
int index = indexOf(*pos);
@ -54,7 +54,7 @@ void SigList<T>::erase(SigList<T>::iterator pos)
}
template <typename T>
void SigList<T>::erase(SigList<T>::iterator first, SigList<T>::iterator last)
void SigList<T>::erase(typename QList<T>::iterator first, typename QList<T>::iterator last)
{
QList<T> removedValues;
int firstIndex = indexOf(*first);
@ -76,7 +76,7 @@ void SigList<T>::insert(int i, const T &t)
}
template <typename T>
void SigList<T>::insert(SigList<T>::iterator before, const T &t)
void SigList<T>::insert(typename QList<T>::iterator before, const T &t)
{
QList<T>::insert(before, t);
onItemAdded(t, indexOf(t));