diff options
author | David Robillard <d@drobilla.net> | 2023-07-02 11:18:39 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-07-02 11:18:39 -0400 |
commit | e201a4e34a67b4ee347c692ebe3922fd3a6929ff (patch) | |
tree | ab9ea92131389caa78806a6aef2f6a51383dfdbd /src | |
parent | c076e93136799096da613950eb14e7d5fbe9375a (diff) | |
download | ingen-e201a4e34a67b4ee347c692ebe3922fd3a6929ff.tar.gz ingen-e201a4e34a67b4ee347c692ebe3922fd3a6929ff.tar.bz2 ingen-e201a4e34a67b4ee347c692ebe3922fd3a6929ff.zip |
Fix potentially dangling reference
Diffstat (limited to 'src')
-rw-r--r-- | src/server/BlockFactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/BlockFactory.cpp b/src/server/BlockFactory.cpp index 5c9279d3..4c8dd1d7 100644 --- a/src/server/BlockFactory.cpp +++ b/src/server/BlockFactory.cpp @@ -149,7 +149,7 @@ BlockFactory::load_lv2_plugins() using Types = std::vector<std::shared_ptr<LilvNode>>; Types types; for (unsigned t = PortType::ID::AUDIO; t <= PortType::ID::ATOM; ++t) { - const URI& uri(PortType(static_cast<PortType::ID>(t)).uri()); + const URI uri{PortType(static_cast<PortType::ID>(t)).uri()}; types.push_back(std::shared_ptr<LilvNode>( lilv_new_uri(_world.lilv_world(), uri.c_str()), lilv_node_free)); } |