summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-08 06:50:14 +0100
committerDavid Robillard <d@drobilla.net>2019-03-09 00:43:43 +0100
commit6bb3c48972d172fec244afae08a905e2246d9cda (patch)
tree8b4e2b0f22896a4b15cbfba9dfc0497a0586d4c8 /ingen
parente4edf13d6ed0a3bc8cb6103d48b082e850949e4c (diff)
downloadingen-6bb3c48972d172fec244afae08a905e2246d9cda.tar.gz
ingen-6bb3c48972d172fec244afae08a905e2246d9cda.tar.bz2
ingen-6bb3c48972d172fec244afae08a905e2246d9cda.zip
Use smart pointers over manual memory management
Diffstat (limited to 'ingen')
-rw-r--r--ingen/DataAccess.hpp4
-rw-r--r--ingen/Serialiser.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/ingen/DataAccess.hpp b/ingen/DataAccess.hpp
index 34b59a49..662b04e9 100644
--- a/ingen/DataAccess.hpp
+++ b/ingen/DataAccess.hpp
@@ -58,8 +58,8 @@ struct DataAccess : public ingen::LV2Features::Feature
data->data_access = desc->extension_data;
- return SPtr<LV2_Feature>(
- new LV2_Feature{ "http://lv2plug.in/ns/ext/data-access", data });
+ return make_shared<LV2_Feature>(
+ LV2_Feature{"http://lv2plug.in/ns/ext/data-access", data});
}
};
diff --git a/ingen/Serialiser.hpp b/ingen/Serialiser.hpp
index 16a7a912..c4598f12 100644
--- a/ingen/Serialiser.hpp
+++ b/ingen/Serialiser.hpp
@@ -97,7 +97,7 @@ public:
private:
struct Impl;
- Impl* me;
+ UPtr<Impl> me;
};
} // namespace ingen