diff options
author | David Robillard <d@drobilla.net> | 2022-08-18 01:20:27 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-18 01:20:27 -0400 |
commit | 44381dbda9dbf8d20894789fe8e3ea941b70a1d0 (patch) | |
tree | 27c4da20f5a796825f7485aa7a1f447ff423f0f6 /src/World.cpp | |
parent | 9126ed67acf17bb2009430cb6de25b2ffd783d8e (diff) | |
download | ingen-44381dbda9dbf8d20894789fe8e3ea941b70a1d0.tar.gz ingen-44381dbda9dbf8d20894789fe8e3ea941b70a1d0.tar.bz2 ingen-44381dbda9dbf8d20894789fe8e3ea941b70a1d0.zip |
Use default member initialization
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/World.cpp b/src/World.cpp index b0ae635f..e2db1a57 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -90,9 +90,7 @@ class World::Impl { public: Impl(LV2_URID_Map* map, LV2_URID_Unmap* unmap, LV2_Log_Log* log_feature) - : argc(nullptr) - , argv(nullptr) - , lv2_features(nullptr) + : lv2_features(new LV2Features()) , rdf_world(new Sord::World()) , lilv_world(lilv_world_new(), lilv_world_free) , uri_map(log, map, unmap) @@ -101,7 +99,6 @@ public: , conf(forge) , log(log_feature, uris) { - lv2_features = new LV2Features(); lv2_features->add_feature(uri_map.urid_map_feature()); lv2_features->add_feature(uri_map.urid_unmap_feature()); lv2_features->add_feature(std::make_shared<InstanceAccess>()); @@ -187,8 +184,8 @@ public: using LilvWorldUPtr = std::unique_ptr<LilvWorld, decltype(&lilv_world_free)>; - int* argc; - char*** argv; + int* argc{nullptr}; + char*** argv{nullptr}; LV2Features* lv2_features; std::unique_ptr<Sord::World> rdf_world; LilvWorldUPtr lilv_world; |