summaryrefslogtreecommitdiffstats
path: root/src/server/LV2ResizeFeature.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-02 15:23:19 +0200
committerDavid Robillard <d@drobilla.net>2020-08-02 15:23:19 +0200
commitbdbdf42f3fe990c713c5437724db39274c387eee (patch)
tree7f921a04fd580da6bcb6fc8975fa2aebfcd93e0f /src/server/LV2ResizeFeature.hpp
parentec0b87a18623c17c16f6a648fcf277abe14142b7 (diff)
downloadingen-bdbdf42f3fe990c713c5437724db39274c387eee.tar.gz
ingen-bdbdf42f3fe990c713c5437724db39274c387eee.tar.bz2
ingen-bdbdf42f3fe990c713c5437724db39274c387eee.zip
Remove std::shared_ptr alias
Diffstat (limited to 'src/server/LV2ResizeFeature.hpp')
-rw-r--r--src/server/LV2ResizeFeature.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/LV2ResizeFeature.hpp b/src/server/LV2ResizeFeature.hpp
index 322aacb8..ddad2ea7 100644
--- a/src/server/LV2ResizeFeature.hpp
+++ b/src/server/LV2ResizeFeature.hpp
@@ -24,6 +24,8 @@
#include "ingen/LV2Features.hpp"
#include "lv2/resize-port/resize-port.h"
+#include <memory>
+
namespace ingen {
namespace server {
@@ -44,7 +46,7 @@ struct ResizeFeature : public ingen::LV2Features::Feature {
const char* uri() const { return LV2_RESIZE_PORT_URI; }
- SPtr<LV2_Feature> feature(World& w, Node* n) {
+ std::shared_ptr<LV2_Feature> feature(World& w, Node* n) {
BlockImpl* block = dynamic_cast<BlockImpl*>(n);
if (!block) {
return nullptr;
@@ -56,7 +58,7 @@ struct ResizeFeature : public ingen::LV2Features::Feature {
LV2_Feature* f = (LV2_Feature*)malloc(sizeof(LV2_Feature));
f->URI = LV2_RESIZE_PORT_URI;
f->data = data;
- return SPtr<LV2_Feature>(f, &free_feature);
+ return std::shared_ptr<LV2_Feature>(f, &free_feature);
}
};