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:
Hugo Santos
2007-05-02 14:08:55 +00:00
parent cc70cbe297
commit f6cfc5af19
3 changed files with 22 additions and 23 deletions
+2 -3
View File
@@ -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;
}