From 83024bb1a4f7e6b6c6280b3328589bbb906bf460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20=C3=96nnerby?= Date: Tue, 22 Jul 2008 18:19:35 +0000 Subject: [PATCH] Fixed small mistake of accessing shared_ptr::px instead of shared_ptr::get() --- src/core/xml/Node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/xml/Node.cpp b/src/core/xml/Node.cpp index 01a2b2da3..88828e8de 100644 --- a/src/core/xml/Node.cpp +++ b/src/core/xml/Node.cpp @@ -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;