set ValueIterator's fIndex to the next slot so OpenHashTable's Iterator properly gets it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20974 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -75,8 +75,7 @@ public:
|
||||
: fOriginalIndex(index), fOriginalValue(value)
|
||||
{
|
||||
Iterator::fTable = table;
|
||||
Iterator::fIndex = index;
|
||||
Iterator::fNext = value;
|
||||
Rewind();
|
||||
}
|
||||
|
||||
bool HasNext() const
|
||||
@@ -91,7 +90,7 @@ public:
|
||||
|
||||
void Rewind()
|
||||
{
|
||||
Iterator::fIndex = fOriginalIndex;
|
||||
Iterator::fIndex = fOriginalIndex + 1;
|
||||
Iterator::fNext = fOriginalValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user