logo

libbulletml

Library of Bullet Markup Language (forked from https://shinh.skr.jp/libbulletml/index_en.html )
commit: b0c7dde79a5fb9c5d514ed54904de72137c9709a
parent c04d1edefb831ddb5054d427efb92a755238ce24
Author: Peter De Wachter <pdewacht@gmail.com>
Date:   Fri, 22 Mar 2024 19:43:48 +0100

Apply 0.0.6-7.debian:patches/get-rid-of-boost.patch

Diffstat:

Msrc/bulletmlrunner.cpp2+-
Msrc/bulletmlrunner.h8++++----
Msrc/bulletmlrunnerimpl.cpp6+++---
Msrc/bulletmlrunnerimpl.h6+++---
4 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/bulletmlrunner.cpp b/src/bulletmlrunner.cpp @@ -11,7 +11,7 @@ BulletMLRunner::BulletMLRunner(BulletMLParser* bulletml) { act.push_back(acts[i]); BulletMLState* state = new BulletMLState(bulletml, act, - boost::shared_ptr<BulletMLParameter>()); + std::tr1::shared_ptr<BulletMLParameter>()); impl_.push_back(makeImpl(state)); } } diff --git a/src/bulletmlrunner.h b/src/bulletmlrunner.h @@ -11,7 +11,7 @@ #include "bulletmlcommon.h" #include <vector> -#include <boost/smart_ptr.hpp> +#include <tr1/memory> class BulletMLParser; class BulletMLNode; @@ -24,17 +24,17 @@ class BulletMLState { public: DECLSPEC BulletMLState(BulletMLParser* bulletml, const std::vector<BulletMLNode*>& node, - boost::shared_ptr<BulletMLParameter> para) + std::tr1::shared_ptr<BulletMLParameter> para) : bulletml_(bulletml), node_(node.begin(), node.end()), para_(para) {} DECLSPEC BulletMLParser* getBulletML() { return bulletml_; } DECLSPEC const std::vector<BulletMLNode*>& getNode() const { return node_; } - DECLSPEC boost::shared_ptr<BulletMLParameter> getParameter() { return para_; } + DECLSPEC std::tr1::shared_ptr<BulletMLParameter> getParameter() { return para_; } private: BulletMLParser* bulletml_; std::vector<BulletMLNode*> node_; - boost::shared_ptr<BulletMLParameter> para_; + std::tr1::shared_ptr<BulletMLParameter> para_; }; diff --git a/src/bulletmlrunnerimpl.cpp b/src/bulletmlrunnerimpl.cpp @@ -374,7 +374,7 @@ void BulletMLRunnerImpl::runRepeat() { } void BulletMLRunnerImpl::runFireRef() { - boost::shared_ptr<Parameters> prevPara = parameters_; + std::tr1::shared_ptr<Parameters> prevPara = parameters_; parameters_.reset(getParameters()); refStack_.push(std::make_pair(act_, prevPara)); @@ -382,7 +382,7 @@ void BulletMLRunnerImpl::runFireRef() { } void BulletMLRunnerImpl::runActionRef() { - boost::shared_ptr<Parameters> prevPara = parameters_; + std::tr1::shared_ptr<Parameters> prevPara = parameters_; parameters_.reset(getParameters()); refStack_.push(std::make_pair(act_, prevPara)); @@ -390,7 +390,7 @@ void BulletMLRunnerImpl::runActionRef() { } void BulletMLRunnerImpl::runBulletRef() { - boost::shared_ptr<Parameters> prevPara = parameters_; + std::tr1::shared_ptr<Parameters> prevPara = parameters_; parameters_.reset(getParameters()); refStack_.push(std::make_pair(act_, prevPara)); diff --git a/src/bulletmlrunnerimpl.h b/src/bulletmlrunnerimpl.h @@ -6,7 +6,7 @@ #include <vector> #include <memory> #include <stack> -#include <boost/smart_ptr.hpp> +#include <tr1/memory> class BulletMLRunner; class BulletMLState; @@ -149,7 +149,7 @@ protected: Validatable<double> spd_, dir_, prevSpd_, prevDir_; typedef BulletMLParameter Parameters; - boost::shared_ptr<Parameters> parameters_; + std::tr1::shared_ptr<Parameters> parameters_; protected: BulletMLParser* bulletml_; @@ -171,7 +171,7 @@ protected: typedef std::stack<RepeatElem*> RepeatStack; RepeatStack repeatStack_; typedef std::stack<std::pair<BulletMLNode*, - boost::shared_ptr<Parameters> > > RefStack; + std::tr1::shared_ptr<Parameters> > > RefStack; RefStack refStack_; typedef void (BulletMLRunnerImpl::*Method)();