@@ -157,8 +157,8 @@ TEST_CASE("parse xml file")
157157 std::shared_ptr<output_t > output{new counting_output_t {options}};
158158
159159 auto counts = std::make_shared<counts_t >();
160- auto dependency_manager = std::unique_ptr< dependency_manager_t >(
161- new counting_dependency_manager_t { counts} );
160+ auto dependency_manager =
161+ std::make_unique< counting_dependency_manager_t >( counts);
162162
163163 testing::parse_file (options, std::move (dependency_manager), middle,
164164 {output}, " test_multipolygon.osm" , false );
@@ -197,8 +197,8 @@ TEST_CASE("parse diff file")
197197 std::shared_ptr<output_t > output{new counting_output_t {options}};
198198
199199 auto counts = std::make_shared<counts_t >();
200- auto dependency_manager = std::unique_ptr< dependency_manager_t >(
201- new counting_dependency_manager_t { counts} );
200+ auto dependency_manager =
201+ std::make_unique< counting_dependency_manager_t >( counts);
202202
203203 testing::parse_file (options, std::move (dependency_manager), middle,
204204 {output}, " 008-ch.osc.gz" , false );
@@ -235,8 +235,8 @@ TEST_CASE("parse xml file with extra args")
235235 std::shared_ptr<output_t > output{new counting_output_t {options}};
236236
237237 auto counts = std::make_shared<counts_t >();
238- auto dependency_manager = std::unique_ptr< dependency_manager_t >(
239- new counting_dependency_manager_t { counts} );
238+ auto dependency_manager =
239+ std::make_unique< counting_dependency_manager_t >( counts);
240240
241241 testing::parse_file (options, std::move (dependency_manager), middle,
242242 {output}, " test_multipolygon.osm" , false );
@@ -275,8 +275,8 @@ TEST_CASE("invalid location")
275275 std::shared_ptr<output_t > output{new counting_output_t {options}};
276276
277277 auto counts = std::make_shared<counts_t >();
278- auto dependency_manager = std::unique_ptr< dependency_manager_t >(
279- new counting_dependency_manager_t { counts} );
278+ auto dependency_manager =
279+ std::make_unique< counting_dependency_manager_t >( counts);
280280
281281 testing::parse_file (options, std::move (dependency_manager), middle,
282282 {output}, " test_invalid_location.osm" , false );
0 commit comments