Maybe fix the Linux compile errors

This commit is contained in:
Aloshi 2013-12-22 16:56:11 -06:00
parent 12ee215873
commit 93f850df75
2 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ public:
void clear();
void setCursor(const T& select);
void setCursor(typename const std::vector<Entry>::const_iterator& it);
void setCursor(typename std::vector<Entry>::const_iterator& it);
inline const T& getSelected() const { return mEntries.at(mCursor).object; }
inline const std::vector<Entry>& getList() const { return mEntries; }
@ -173,7 +173,7 @@ void ImageGridComponent<T>::setCursor(const T& obj)
}
template<typename T>
void ImageGridComponent<T>::setCursor(typename const std::vector<Entry>::const_iterator& it)
void ImageGridComponent<T>::setCursor(typename std::vector<Entry>::const_iterator& it)
{
assert(it != mEntries.end());
mCursor = it - mEntries.begin();

View file

@ -49,7 +49,7 @@ public:
inline const std::vector<ListRow>& getList() const { return mRowVector; }
void setCursor(const T& select);
void setCursor(typename const std::vector<ListRow>::const_iterator& it);
void setCursor(typename std::vector<ListRow>::const_iterator& it);
void stopScrolling();
inline bool isScrolling() const { return mScrollDir != 0; }
@ -378,7 +378,7 @@ void TextListComponent<T>::setCursor(const T& obj)
template <typename T>
void TextListComponent<T>::setCursor(typename const std::vector<ListRow>::const_iterator& it)
void TextListComponent<T>::setCursor(typename std::vector<ListRow>::const_iterator& it)
{
assert(it != mRowVector.end());
mCursor = it - mRowVector.begin();