The ConstIterator only needs a const tree.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37137 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-06-14 23:51:54 +00:00
parent 1b1ad0b951
commit 0f48aa877a
+4 -4
View File
@@ -443,14 +443,14 @@ public:
*this = other;
}
ConstIterator(Tree* tree)
ConstIterator(const Tree* tree)
:
fTree(tree)
{
Rewind();
}
ConstIterator(Tree* tree, Node* next)
ConstIterator(const Tree* tree, Node* next)
:
fTree(tree),
fNext(next)
@@ -483,8 +483,8 @@ public:
}
private:
Tree* fTree;
Node* fNext;
const Tree* fTree;
Node* fNext;
};
IteratableSplayTree()