summaryrefslogtreecommitdiffstats
path: root/ingen/DataAccess.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ingen/DataAccess.hpp')
-rw-r--r--ingen/DataAccess.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/ingen/DataAccess.hpp b/ingen/DataAccess.hpp
index 99847896..79bb84eb 100644
--- a/ingen/DataAccess.hpp
+++ b/ingen/DataAccess.hpp
@@ -51,10 +51,9 @@ struct DataAccess : public ingen::LV2Features::Feature
return SPtr<LV2_Feature>();
}
- const LV2_Descriptor* desc = lilv_instance_get_descriptor(inst);
- LV2_Extension_Data_Feature* data =
- static_cast<LV2_Extension_Data_Feature*>(
- malloc(sizeof(LV2_Extension_Data_Feature)));
+ const LV2_Descriptor* desc = lilv_instance_get_descriptor(inst);
+ auto* data = static_cast<LV2_Extension_Data_Feature*>(
+ malloc(sizeof(LV2_Extension_Data_Feature)));
data->data_access = desc->extension_data;