Fixed small mistake of accessing shared_ptr::px instead of shared_ptr::get()

This commit is contained in:
Daniel Önnerby 2008-07-22 18:19:35 +00:00
parent f9de0cf101
commit 83024bb1a4

View File

@ -56,7 +56,7 @@ Node::~Node(void){
if(this->parent){
// Erase in parents childnodes
for(ChildNodes::iterator node=this->parent->childNodes.begin();node!=this->parent->childNodes.end();){
if( node->px==this ){
if( node->get()==this ){
node = this->parent->childNodes.erase(node);
}else{
++node;
@ -90,7 +90,7 @@ int Node::NodeLevel(){
void Node::RemoveFromParent(){
if(this->parent){
for(Node::ChildNodes::iterator node=this->parent->childNodes.begin();node!=this->parent->childNodes.end();){
if( this == node->px ){
if( node->get()==this ){
node = this->parent->childNodes.erase(node);
}else{
++node;