diff options
Diffstat (limited to 'linden/indra/llmath/lltreenode.h')
-rw-r--r-- | linden/indra/llmath/lltreenode.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/linden/indra/llmath/lltreenode.h b/linden/indra/llmath/lltreenode.h index 78ff759..ba3c867 100644 --- a/linden/indra/llmath/lltreenode.h +++ b/linden/indra/llmath/lltreenode.h | |||
@@ -41,7 +41,6 @@ class LLTreeState | |||
41 | public: | 41 | public: |
42 | LLTreeState(LLTreeNode<T>* node) { setNode(node); } | 42 | LLTreeState(LLTreeNode<T>* node) { setNode(node); } |
43 | virtual ~LLTreeState() { }; | 43 | virtual ~LLTreeState() { }; |
44 | |||
45 | virtual bool insert(T* data) = 0; | 44 | virtual bool insert(T* data) = 0; |
46 | virtual bool remove(T* data) = 0; | 45 | virtual bool remove(T* data) = 0; |
47 | virtual void setNode(LLTreeNode<T>* node); | 46 | virtual void setNode(LLTreeNode<T>* node); |
@@ -54,7 +53,7 @@ private: | |||
54 | }; | 53 | }; |
55 | 54 | ||
56 | template <class T> | 55 | template <class T> |
57 | class LLTreeListener | 56 | class LLTreeListener: public LLRefCount |
58 | { | 57 | { |
59 | public: | 58 | public: |
60 | virtual ~LLTreeListener() { }; | 59 | virtual ~LLTreeListener() { }; |
@@ -94,7 +93,7 @@ protected: | |||
94 | 93 | ||
95 | LLTreeState<T>* mState; | 94 | LLTreeState<T>* mState; |
96 | public: | 95 | public: |
97 | std::vector<LLTreeListener<T>*> mListeners; | 96 | std::vector<LLPointer<LLTreeListener<T> > > mListeners; |
98 | }; | 97 | }; |
99 | 98 | ||
100 | template <class T> | 99 | template <class T> |