mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Use std smart pointers in code
This commit is contained in:
parent
2f72d5639e
commit
35fa6e63e6
15 changed files with 53 additions and 55 deletions
|
|
@ -11,7 +11,7 @@
|
|||
#include <turtle/verify.hpp>
|
||||
#include <turtle/detail/function.hpp>
|
||||
#include <boost/test/auto_unit_test.hpp>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <memory>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
|
@ -90,7 +90,7 @@ BOOST_FIXTURE_TEST_CASE( an_object_is_assignable_by_sharing_its_state, mock_erro
|
|||
|
||||
BOOST_FIXTURE_TEST_CASE( an_object_is_copiable_by_sharing_its_state, mock_error_fixture )
|
||||
{
|
||||
boost::scoped_ptr< object > o2( new object );
|
||||
auto o2 = std::make_unique<object>();
|
||||
const object o1( *o2 );
|
||||
mock::detail::function< void() > e;
|
||||
mock::detail::configure( *o2, e, "instance", MOCK_TYPE_NAME(*o2), "name" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue