From 3ae3c86937c7ffc45d24e36a33560cd63ebb900b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 27 Sep 2022 18:28:26 -0400 Subject: Use std::make_unique --- src/ingen/ingen.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ingen') diff --git a/src/ingen/ingen.cpp b/src/ingen/ingen.cpp index b19e6423..06d990f2 100644 --- a/src/ingen/ingen.cpp +++ b/src/ingen/ingen.cpp @@ -99,8 +99,7 @@ run(int argc, char** argv) { // Create world try { - world = std::unique_ptr( - new ingen::World(nullptr, nullptr, nullptr)); + world = std::make_unique(nullptr, nullptr, nullptr); world->load_configuration(argc, argv); if (argc <= 1) { world->conf().print_usage("ingen", std::cout); -- cgit v1.2.1