diff options
Diffstat (limited to 'ingen/DataAccess.hpp')
-rw-r--r-- | ingen/DataAccess.hpp | 7 |
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; |