mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 03:14:49 +00:00
Fixed MSVC issues.
This commit is contained in:
parent
3649904974
commit
2020d9c24b
@ -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);
|
||||
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user