From 87958fdf128f194e8ea9ff48674bed0488d24cf8 Mon Sep 17 00:00:00 2001
From: Pawel Dziepak <pdziepak@quarnos.org>
Date: Fri, 29 Jun 2012 00:24:49 +0200
Subject: [PATCH] Fix #8643: AVLTreeMap strategy Auto discards const
---
headers/private/kernel/util/AVLTreeMap.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/headers/private/kernel/util/AVLTreeMap.h b/headers/private/kernel/util/AVLTreeMap.h
index 2405bb7..ea436be 100644
a
|
b
|
namespace AVLTreeMapStrategy {
|
26 | 26 | typename Node; |
27 | 27 | inline Node* Allocate(const Key& key, const Value& value) |
28 | 28 | inline void Free(Node* node) |
29 | | inline Key GetKey(Node* node) const |
| 29 | inline const Key GetKey(const Node* node) const |
30 | 30 | inline Value& GetValue(Node* node) const |
31 | 31 | inline AVLTreeNode* GetAVLTreeNode(Node* node) const |
32 | 32 | inline Node* GetNode(AVLTreeNode* node) const |
… |
… |
public:
|
622 | 622 | fAllocator.Deallocate(node); |
623 | 623 | } |
624 | 624 | |
625 | | inline Key& GetKey(Node* node) const |
| 625 | inline const Key& GetKey(const Node* node) const |
626 | 626 | { |
627 | 627 | return node->key; |
628 | 628 | } |