diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2014-01-31 18:24:55 -0700 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2014-01-31 18:24:55 -0700 |
commit | b49170b732e6e4b2cf11b40c12b3d75a8709cf5c (patch) | |
tree | d89f953347dffdf990ba0c666d0748f1176a89d5 /indra/newview/llvocache.h | |
parent | 3455bf958908037e6d8fcb2956d2cebcdee6ae2d (diff) |
fix some flaws for memory corruption
Diffstat (limited to 'indra/newview/llvocache.h')
-rwxr-xr-x | indra/newview/llvocache.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llvocache.h b/indra/newview/llvocache.h index 7396de4709..082f5f0b1d 100755 --- a/indra/newview/llvocache.h +++ b/indra/newview/llvocache.h @@ -113,11 +113,13 @@ public: /*virtual*/ void setOctreeEntry(LLViewerOctreeEntry* entry); - void setParentID(U32 id) {mParentID = id;} + void setParentID(U32 id); U32 getParentID() const {return mParentID;} + bool isChild() const {return mParentID > 0;} void addChild(LLVOCacheEntry* entry); void removeChild(LLVOCacheEntry* entry); + void removeAllChildren(); LLVOCacheEntry* getChild(); //remove the first child, and return it. S32 getNumOfChildren() const {return mChildrenList.size();} |