mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Replaced new with boost::make_shared
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@634 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
26540da771
commit
4ee2837dcd
7 changed files with 23 additions and 25 deletions
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "config.hpp"
|
||||
#include "detail/sequence_impl.hpp"
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
namespace mock
|
||||
{
|
||||
|
|
@ -19,7 +19,7 @@ namespace mock
|
|||
{
|
||||
public:
|
||||
sequence()
|
||||
: impl_( new detail::sequence_impl() )
|
||||
: impl_( boost::make_shared< detail::sequence_impl >() )
|
||||
{}
|
||||
|
||||
boost::shared_ptr< detail::sequence_impl > impl_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue