summaryrefslogtreecommitdiffstats
path: root/libutil
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-02-21 19:59:34 +0100
committerPetr Mrázek <peterix@gmail.com>2013-02-21 19:59:34 +0100
commit50d1f62bf4a8d70466100463238228bc8305a5c7 (patch)
treeb89f837e2fcc0ff4caf50280c25638212e2bd284 /libutil
parent294c8e21c85b807b7880a8b722850417f12f5f26 (diff)
downloadMultiMC-50d1f62bf4a8d70466100463238228bc8305a5c7.tar
MultiMC-50d1f62bf4a8d70466100463238228bc8305a5c7.tar.gz
MultiMC-50d1f62bf4a8d70466100463238228bc8305a5c7.tar.lz
MultiMC-50d1f62bf4a8d70466100463238228bc8305a5c7.tar.xz
MultiMC-50d1f62bf4a8d70466100463238228bc8305a5c7.zip
More GCC fixes
Diffstat (limited to 'libutil')
-rw-r--r--libutil/include/siglist_impl.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libutil/include/siglist_impl.h b/libutil/include/siglist_impl.h
index 9736b2cf..5cdc632a 100644
--- a/libutil/include/siglist_impl.h
+++ b/libutil/include/siglist_impl.h
@@ -48,7 +48,7 @@ template <typename T>
void SigList<T>::erase(typename QList<T>::iterator pos)
{
T value = *pos;
- int index = indexOf(*pos);
+ int index = QList<T>::indexOf(*pos);
QList<T>::erase(pos);
onItemRemoved(value, index);
}
@@ -57,9 +57,9 @@ template <typename T>
void SigList<T>::erase(typename QList<T>::iterator first, typename QList<T>::iterator last)
{
QList<T> removedValues;
- int firstIndex = indexOf(*first);
+ int firstIndex = QList<T>::indexOf(*first);
- for (SigList<T>::iterator iter = first; iter < last; iter++)
+ for (auto iter = first; iter < last; iter++)
{
removedValues << *iter;
QList<T>::erase(iter);
@@ -79,7 +79,7 @@ template <typename T>
void SigList<T>::insert(typename QList<T>::iterator before, const T &t)
{
QList<T>::insert(before, t);
- onItemAdded(t, indexOf(t));
+ onItemAdded(t, QList<T>::indexOf(t));
}
template <typename T>
@@ -101,7 +101,7 @@ int SigList<T>::removeAll(const T &t)
template <typename T>
bool SigList<T>::removeOne(const T &t)
{
- int index = indexOf(t);
+ int index = QList<T>::indexOf(t);
if (QList<T>::removeOne(t))
{
onItemRemoved(t, index);