Ticket #8643: 0001-Fix-8643-AVLTreeMap-strategy-Auto-discards-const.patch

File 0001-Fix-8643-AVLTreeMap-strategy-Auto-discards-const.patch, 1.1 KB (added by pdziepak, 12 years ago)
  • headers/private/kernel/util/AVLTreeMap.h

    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 {  
    2626    typename Node;
    2727    inline Node* Allocate(const Key& key, const Value& value)
    2828    inline void Free(Node* node)
    29     inline Key GetKey(Node* node) const
     29    inline const Key GetKey(const Node* node) const
    3030    inline Value& GetValue(Node* node) const
    3131    inline AVLTreeNode* GetAVLTreeNode(Node* node) const
    3232    inline Node* GetNode(AVLTreeNode* node) const
    public:  
    622622        fAllocator.Deallocate(node);
    623623    }
    624624
    625     inline Key& GetKey(Node* node) const
     625    inline const Key& GetKey(const Node* node) const
    626626    {
    627627        return node->key;
    628628    }