[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-commits
Subject: [haiku-commits] haiku: hrev44273 - headers/private/kernel/util
From: ingo_weinhold () gmx ! de
Date: 2012-06-28 23:44:05
Message-ID: 20120628234405.6B47B5C0C12 () vmrepo ! haiku-os ! org
[Download RAW message or body]
hrev44273 adds 1 changeset to branch 'master'
old head: 342e3b2c1b43a755a32645f97032a551e29ec5bc
new head: 06e8742063e6bd56b6b4c0d75f1129034feec6a0
----------------------------------------------------------------------------
06e8742: Fix #8643: AVLTreeMap strategy Auto discards const
Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
[ Pawel Dziepak <pdziepak@quarnos.org> ]
----------------------------------------------------------------------------
Revision: hrev44273
Commit: 06e8742063e6bd56b6b4c0d75f1129034feec6a0
URL: http://cgit.haiku-os.org/haiku/commit/?id=06e8742
Author: Pawel Dziepak <pdziepak@quarnos.org>
Date: Thu Jun 28 22:24:49 2012 UTC
Committer: Ingo Weinhold <ingo_weinhold@gmx.de>
Commit-Date: Thu Jun 28 23:37:33 2012 UTC
Ticket: https://dev.haiku-os.org/ticket/8643
----------------------------------------------------------------------------
1 file changed, 2 insertions(+), 2 deletions(-)
headers/private/kernel/util/AVLTreeMap.h | 4 ++--
----------------------------------------------------------------------------
diff --git a/headers/private/kernel/util/AVLTreeMap.h b/headers/private/kernel/util/AVLTreeMap.h
index 2405bb7..ea436be 100644
--- a/headers/private/kernel/util/AVLTreeMap.h
+++ b/headers/private/kernel/util/AVLTreeMap.h
@@ -26,7 +26,7 @@ namespace AVLTreeMapStrategy {
typename Node;
inline Node* Allocate(const Key& key, const Value& value)
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 AVLTreeNode* GetAVLTreeNode(Node* node) const
inline Node* GetNode(AVLTreeNode* node) const
@@ -622,7 +622,7 @@ public:
fAllocator.Deallocate(node);
}
- inline Key& GetKey(Node* node) const
+ inline const Key& GetKey(const Node* node) const
{
return node->key;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic