diff --git a/src/components/ImageGridComponent.h b/src/components/ImageGridComponent.h index f9e73ce94..3e01c8914 100644 --- a/src/components/ImageGridComponent.h +++ b/src/components/ImageGridComponent.h @@ -24,7 +24,7 @@ public: void clear(); void setCursor(const T& select); - void setCursor(typename const std::vector::const_iterator& it); + void setCursor(typename std::vector::const_iterator& it); inline const T& getSelected() const { return mEntries.at(mCursor).object; } inline const std::vector& getList() const { return mEntries; } @@ -173,7 +173,7 @@ void ImageGridComponent::setCursor(const T& obj) } template -void ImageGridComponent::setCursor(typename const std::vector::const_iterator& it) +void ImageGridComponent::setCursor(typename std::vector::const_iterator& it) { assert(it != mEntries.end()); mCursor = it - mEntries.begin(); diff --git a/src/components/TextListComponent.h b/src/components/TextListComponent.h index c63c50050..45c709cc7 100644 --- a/src/components/TextListComponent.h +++ b/src/components/TextListComponent.h @@ -49,7 +49,7 @@ public: inline const std::vector& getList() const { return mRowVector; } void setCursor(const T& select); - void setCursor(typename const std::vector::const_iterator& it); + void setCursor(typename std::vector::const_iterator& it); void stopScrolling(); inline bool isScrolling() const { return mScrollDir != 0; } @@ -378,7 +378,7 @@ void TextListComponent::setCursor(const T& obj) template -void TextListComponent::setCursor(typename const std::vector::const_iterator& it) +void TextListComponent::setCursor(typename std::vector::const_iterator& it) { assert(it != mRowVector.end()); mCursor = it - mRowVector.begin();