diff --git a/apps/opencs/model/filter/binarynode.cpp b/apps/opencs/model/filter/binarynode.cpp index 0e86930dbb..c0c7fde378 100644 --- a/apps/opencs/model/filter/binarynode.cpp +++ b/apps/opencs/model/filter/binarynode.cpp @@ -1,7 +1,7 @@ #include "binarynode.hpp" -CSMFilter::BinaryNode::BinaryNode (std::auto_ptr left, std::auto_ptr right) +CSMFilter::BinaryNode::BinaryNode (boost::shared_ptr left, boost::shared_ptr right) : mLeft (left), mRight (right) {} diff --git a/apps/opencs/model/filter/binarynode.hpp b/apps/opencs/model/filter/binarynode.hpp index 18cdad2a9f..c2b4041d25 100644 --- a/apps/opencs/model/filter/binarynode.hpp +++ b/apps/opencs/model/filter/binarynode.hpp @@ -1,7 +1,7 @@ #ifndef CSM_FILTER_BINARYNODE_H #define CSM_FILTER_BINARYNODE_H -#include +#include #include "node.hpp" @@ -9,12 +9,12 @@ namespace CSMFilter { class BinaryNode : public Node { - std::auto_ptr mLeft; - std::auto_ptr mRight; + boost::shared_ptr mLeft; + boost::shared_ptr mRight; public: - BinaryNode (std::auto_ptr left, std::auto_ptr right); + BinaryNode (boost::shared_ptr left, boost::shared_ptr right); const Node& getLeft() const; diff --git a/apps/opencs/model/filter/unarynode.cpp b/apps/opencs/model/filter/unarynode.cpp index f9cc3fdc83..490d953769 100644 --- a/apps/opencs/model/filter/unarynode.cpp +++ b/apps/opencs/model/filter/unarynode.cpp @@ -1,7 +1,7 @@ #include "unarynode.hpp" -CSMFilter::UnaryNode::UnaryNode (std::auto_ptr child) : mChild (child) {} +CSMFilter::UnaryNode::UnaryNode (boost::shared_ptr child) : mChild (child) {} const CSMFilter::Node& CSMFilter::UnaryNode::getChild() const { diff --git a/apps/opencs/model/filter/unarynode.hpp b/apps/opencs/model/filter/unarynode.hpp index 6ecad1192e..4e1fb0cc29 100644 --- a/apps/opencs/model/filter/unarynode.hpp +++ b/apps/opencs/model/filter/unarynode.hpp @@ -1,7 +1,7 @@ #ifndef CSM_FILTER_UNARIYNODE_H #define CSM_FILTER_UNARIYNODE_H -#include +#include #include "node.hpp" @@ -9,11 +9,11 @@ namespace CSMFilter { class UnaryNode : public Node { - std::auto_ptr mChild; + boost::shared_ptr mChild; public: - UnaryNode (std::auto_ptr child); + UnaryNode (boost::shared_ptr child); const Node& getChild() const;