diff options
author | David Robillard <d@drobilla.net> | 2022-09-27 18:28:26 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-27 18:28:26 -0400 |
commit | 3ae3c86937c7ffc45d24e36a33560cd63ebb900b (patch) | |
tree | 94950d3132bf7408f0263c36723ed51849c42fd6 /tests | |
parent | f8fefe7d8e417c29537e8c9fa7703107d69f66b5 (diff) | |
download | ingen-3ae3c86937c7ffc45d24e36a33560cd63ebb900b.tar.gz ingen-3ae3c86937c7ffc45d24e36a33560cd63ebb900b.tar.bz2 ingen-3ae3c86937c7ffc45d24e36a33560cd63ebb900b.zip |
Use std::make_unique
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ingen_bench.cpp | 3 | ||||
-rw-r--r-- | tests/ingen_test.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/ingen_bench.cpp b/tests/ingen_bench.cpp index 2af53f89..07a59f9b 100644 --- a/tests/ingen_bench.cpp +++ b/tests/ingen_bench.cpp @@ -62,8 +62,7 @@ run(int argc, char** argv) { // Create world try { - world = std::unique_ptr<ingen::World>{ - new ingen::World(nullptr, nullptr, nullptr)}; + world = std::make_unique<ingen::World>(nullptr, nullptr, nullptr); world->conf().add( "output", "output", 'O', "File to write benchmark output", diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp index 9f7da2f0..df7e9d34 100644 --- a/tests/ingen_test.cpp +++ b/tests/ingen_test.cpp @@ -78,7 +78,7 @@ run(int argc, char** argv) { // Create world try { - world = std::unique_ptr<World>{new World(nullptr, nullptr, nullptr)}; + world = std::make_unique<World>(nullptr, nullptr, nullptr); world->load_configuration(argc, argv); } catch (std::exception& e) { std::cout << "ingen: " << e.what() << std::endl; |