Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Update of /cvsroot/planeshift/planeshift/src/common/util
In directory sc8-pr-cvs1:/tmp/cvs-serv28433
Fix to allow correct reference handling in the root node of a BinaryTree.
RCS file: /cvsroot/planeshift/planeshift/src/common/util/binarytree.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** binarytree.cpp 1 Jul 2002 02:49:27 -0000 1.11
--- binarytree.cpp 3 Mar 2003 06:16:40 -0000 1.12
*** 74,77 ****
--- 74,83 ----
if (*pRoot->pObj == *pT) // Deleting root of tree
+ // Decrement the reference count
+ // Any references remaining?
+ if (pRoot->iRefCount)
+ return pRoot->iRefCount; // return the remaining ref count
BinaryTreeNode<T> *pOldRoot = pRoot;
Sign up for the SourceForge newsletter: