summaryrefslogtreecommitdiffstats
path: root/src/ingen/ingen.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-09-27 18:28:26 -0400
committerDavid Robillard <d@drobilla.net>2022-09-27 18:28:26 -0400
commit3ae3c86937c7ffc45d24e36a33560cd63ebb900b (patch)
tree94950d3132bf7408f0263c36723ed51849c42fd6 /src/ingen/ingen.cpp
parentf8fefe7d8e417c29537e8c9fa7703107d69f66b5 (diff)
downloadingen-3ae3c86937c7ffc45d24e36a33560cd63ebb900b.tar.gz
ingen-3ae3c86937c7ffc45d24e36a33560cd63ebb900b.tar.bz2
ingen-3ae3c86937c7ffc45d24e36a33560cd63ebb900b.zip
Use std::make_unique
Diffstat (limited to 'src/ingen/ingen.cpp')
-rw-r--r--src/ingen/ingen.cpp3
1 files changed, 1 insertions, 2 deletions
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<ingen::World>(
- new ingen::World(nullptr, nullptr, nullptr));
+ world = std::make_unique<ingen::World>(nullptr, nullptr, nullptr);
world->load_configuration(argc, argv);
if (argc <= 1) {
world->conf().print_usage("ingen", std::cout);