Minor fixes.
This commit is contained in:
parent
ac733404e1
commit
858d247893
10 changed files with 37 additions and 57 deletions
|
|
@ -180,11 +180,11 @@ public:
|
|||
|
||||
public:
|
||||
int32 &next () {
|
||||
return at (m_cursor + 1);
|
||||
return at (1);
|
||||
}
|
||||
|
||||
int32 &first () {
|
||||
return at (m_cursor);
|
||||
return at (0);
|
||||
}
|
||||
|
||||
int32 &last () {
|
||||
|
|
@ -192,7 +192,7 @@ public:
|
|||
}
|
||||
|
||||
int32 &at (size_t index) {
|
||||
return m_storage.at (index);
|
||||
return m_storage.at (m_cursor + index);
|
||||
}
|
||||
|
||||
void shift () {
|
||||
|
|
@ -210,10 +210,6 @@ public:
|
|||
return m_storage.length () - m_cursor;
|
||||
}
|
||||
|
||||
size_t cursor () const {
|
||||
return m_cursor;
|
||||
}
|
||||
|
||||
bool hasNext () const {
|
||||
return m_cursor < m_storage.length ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue