summaryrefslogtreecommitdiff
path: root/indra/newview/llvieweroctree.h
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-01-09 22:43:10 -0700
committerXiaohong Bao <bao@lindenlab.com>2013-01-09 22:43:10 -0700
commit7cc37d949e9319a5b60641ff8453a0fed763d817 (patch)
tree366eeb2e217c26f589fa98c8e777a38d22c6df3b /indra/newview/llvieweroctree.h
parent8315e9745398c1c3215ffe1b3bfbfb6c7d16291d (diff)
fix the merge errors from the changeset 3eadda9666cf
Diffstat (limited to 'indra/newview/llvieweroctree.h')
-rw-r--r--indra/newview/llvieweroctree.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/indra/newview/llvieweroctree.h b/indra/newview/llvieweroctree.h
index f6ad3ac327..5bcaeb85da 100644
--- a/indra/newview/llvieweroctree.h
+++ b/indra/newview/llvieweroctree.h
@@ -94,6 +94,16 @@ public:
S32 getBinIndex() const {return mBinIndex; }
void setBinIndex(S32 index) const {mBinIndex = index; }
+ void* operator new(size_t size)
+ {
+ return ll_aligned_malloc_16(size);
+ }
+
+ void operator delete(void* ptr)
+ {
+ ll_aligned_free_16(ptr);
+ }
+
private:
void addData(LLViewerOctreeEntryData* data);
@@ -238,8 +248,9 @@ public:
element_list& getData() { return mOctreeNode->getData(); }
element_iter getDataBegin() { return mOctreeNode->getDataBegin(); }
element_iter getDataEnd() { return mOctreeNode->getDataEnd(); }
- U32 getElementCount() const { return mOctreeNode->getElementCount(); }
-
+ U32 getElementCount() const { return mOctreeNode->getElementCount(); }
+ bool hasElement(LLViewerOctreeEntryData* data);
+
private:
virtual bool boundObjects(BOOL empty, LLVector4a& minOut, LLVector4a& maxOut);