From df1447c665e6c3631961297a9d3e9aff4e94c47f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 Jan 2013 23:38:03 +0000 Subject: Remove Raul::SharedPtr and switch to std::shared_ptr. Use project local short type aliases for shared_ptr and friends. Move Raul::Disposable and Raul::Manageable into Raul::Maid. Use sets to store machina nodes and edges to avoid O(n) searches. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4939 a436a847-0d15-0410-975c-d299462d15a1 --- src/LV2Features.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/LV2Features.cpp') diff --git a/src/LV2Features.cpp b/src/LV2Features.cpp index a7069a75..3941d92c 100644 --- a/src/LV2Features.cpp +++ b/src/LV2Features.cpp @@ -27,7 +27,7 @@ LV2Features::LV2Features() } void -LV2Features::add_feature(SharedPtr feature) +LV2Features::add_feature(SPtr feature) { _features.push_back(feature); } @@ -53,17 +53,17 @@ LV2Features::is_supported(const std::string& uri) const return false; } -SharedPtr +SPtr LV2Features::lv2_features(World* world, Node* node) const { FeatureArray::FeatureVector vec; for (const auto& f : _features) { - SharedPtr fptr = f->feature(world, node); + SPtr fptr = f->feature(world, node); if (fptr) { vec.push_back(fptr); } } - return SharedPtr(new FeatureArray(vec)); + return SPtr(new FeatureArray(vec)); } } // namespace Ingen -- cgit v1.2.1