diff --git a/java/endian.h b/java/javaendian.h similarity index 100% rename from java/endian.h rename to java/javaendian.h diff --git a/java/membuffer.h b/java/membuffer.h index 48304b9f..2ea3a69b 100644 --- a/java/membuffer.h +++ b/java/membuffer.h @@ -3,7 +3,7 @@ #include #include #include -#include "endian.h" +#include "javaendian.h" namespace util { 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 void SigList::erase(typename QList::iterator pos) { T value = *pos; - int index = indexOf(*pos); + int index = QList::indexOf(*pos); QList::erase(pos); onItemRemoved(value, index); } @@ -57,9 +57,9 @@ template void SigList::erase(typename QList::iterator first, typename QList::iterator last) { QList removedValues; - int firstIndex = indexOf(*first); + int firstIndex = QList::indexOf(*first); - for (SigList::iterator iter = first; iter < last; iter++) + for (auto iter = first; iter < last; iter++) { removedValues << *iter; QList::erase(iter); @@ -79,7 +79,7 @@ template void SigList::insert(typename QList::iterator before, const T &t) { QList::insert(before, t); - onItemAdded(t, indexOf(t)); + onItemAdded(t, QList::indexOf(t)); } template @@ -101,7 +101,7 @@ int SigList::removeAll(const T &t) template bool SigList::removeOne(const T &t) { - int index = indexOf(t); + int index = QList::indexOf(t); if (QList::removeOne(t)) { onItemRemoved(t, index);