Use std smart pointers in code

This commit is contained in:
Alexander Grund 2020-07-09 19:09:54 +02:00
parent 2f72d5639e
commit 35fa6e63e6
No known key found for this signature in database
GPG key ID: AA48A0760367A42B
15 changed files with 53 additions and 55 deletions

View file

@ -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" );