1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 08:53:52 +00:00

repalced std::auto_ptr with boost::shared_ptr in filter nodes

This commit is contained in:
Marc Zinnschlag 2013-08-16 13:57:54 +02:00
parent 789a66eaa7
commit 528e047fd5
4 changed files with 9 additions and 9 deletions

View file

@ -1,7 +1,7 @@
#include "binarynode.hpp"
CSMFilter::BinaryNode::BinaryNode (std::auto_ptr<Node> left, std::auto_ptr<Node> right)
CSMFilter::BinaryNode::BinaryNode (boost::shared_ptr<Node> left, boost::shared_ptr<Node> right)
: mLeft (left), mRight (right)
{}

View file

@ -1,7 +1,7 @@
#ifndef CSM_FILTER_BINARYNODE_H
#define CSM_FILTER_BINARYNODE_H
#include <memory>
#include <boost/shared_ptr.hpp>
#include "node.hpp"
@ -9,12 +9,12 @@ namespace CSMFilter
{
class BinaryNode : public Node
{
std::auto_ptr<Node> mLeft;
std::auto_ptr<Node> mRight;
boost::shared_ptr<Node> mLeft;
boost::shared_ptr<Node> mRight;
public:
BinaryNode (std::auto_ptr<Node> left, std::auto_ptr<Node> right);
BinaryNode (boost::shared_ptr<Node> left, boost::shared_ptr<Node> right);
const Node& getLeft() const;

View file

@ -1,7 +1,7 @@
#include "unarynode.hpp"
CSMFilter::UnaryNode::UnaryNode (std::auto_ptr<Node> child) : mChild (child) {}
CSMFilter::UnaryNode::UnaryNode (boost::shared_ptr<Node> child) : mChild (child) {}
const CSMFilter::Node& CSMFilter::UnaryNode::getChild() const
{

View file

@ -1,7 +1,7 @@
#ifndef CSM_FILTER_UNARIYNODE_H
#define CSM_FILTER_UNARIYNODE_H
#include <memory>
#include <boost/shared_ptr.hpp>
#include "node.hpp"
@ -9,11 +9,11 @@ namespace CSMFilter
{
class UnaryNode : public Node
{
std::auto_ptr<Node> mChild;
boost::shared_ptr<Node> mChild;
public:
UnaryNode (std::auto_ptr<Node> child);
UnaryNode (boost::shared_ptr<Node> child);
const Node& getChild() const;