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