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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user