Fix #8643: AVLTreeMap strategy Auto discards const
Signed-off-by: Ingo Weinhold <[email protected]>
This commit is contained in:
committed by
Ingo Weinhold
parent
342e3b2c1b
commit
06e8742063
@@ -26,7 +26,7 @@ namespace AVLTreeMapStrategy {
|
|||||||
typename Node;
|
typename Node;
|
||||||
inline Node* Allocate(const Key& key, const Value& value)
|
inline Node* Allocate(const Key& key, const Value& value)
|
||||||
inline void Free(Node* node)
|
inline void Free(Node* node)
|
||||||
inline Key GetKey(Node* node) const
|
inline const Key GetKey(const Node* node) const
|
||||||
inline Value& GetValue(Node* node) const
|
inline Value& GetValue(Node* node) const
|
||||||
inline AVLTreeNode* GetAVLTreeNode(Node* node) const
|
inline AVLTreeNode* GetAVLTreeNode(Node* node) const
|
||||||
inline Node* GetNode(AVLTreeNode* node) const
|
inline Node* GetNode(AVLTreeNode* node) const
|
||||||
@@ -622,7 +622,7 @@ public:
|
|||||||
fAllocator.Deallocate(node);
|
fAllocator.Deallocate(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline Key& GetKey(Node* node) const
|
inline const Key& GetKey(const Node* node) const
|
||||||
{
|
{
|
||||||
return node->key;
|
return node->key;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user