diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 11:50:31 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-01 16:48:06 +0200 |
commit | 358c0a4140406c8c38138a88aa03a4fc0ec6e7ee (patch) | |
tree | 21a0c0397ca9bd8e67136c472d8146bb3a22a204 /src/gui/ingen_gui_lv2.cpp | |
parent | b453818f17a84c01d679088e5a377e244a231981 (diff) | |
download | ingen-358c0a4140406c8c38138a88aa03a4fc0ec6e7ee.tar.gz ingen-358c0a4140406c8c38138a88aa03a4fc0ec6e7ee.tar.bz2 ingen-358c0a4140406c8c38138a88aa03a4fc0ec6e7ee.zip |
Use modern casts
Diffstat (limited to 'src/gui/ingen_gui_lv2.cpp')
-rw-r--r-- | src/gui/ingen_gui_lv2.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/ingen_gui_lv2.cpp b/src/gui/ingen_gui_lv2.cpp index 4817e9ae..e1c1eef7 100644 --- a/src/gui/ingen_gui_lv2.cpp +++ b/src/gui/ingen_gui_lv2.cpp @@ -119,11 +119,11 @@ instantiate(const LV2UI_Descriptor* descriptor, LV2_Log_Log* log = nullptr; for (int i = 0; features[i]; ++i) { if (!strcmp(features[i]->URI, LV2_URID__map)) { - map = (LV2_URID_Map*)features[i]->data; + map = static_cast<LV2_URID_Map*>(features[i]->data); } else if (!strcmp(features[i]->URI, LV2_URID__unmap)) { - unmap = (LV2_URID_Unmap*)features[i]->data; + unmap = static_cast<LV2_URID_Unmap*>(features[i]->data); } else if (!strcmp(features[i]->URI, LV2_LOG__log)) { - log = (LV2_Log_Log*)features[i]->data; + log = static_cast<LV2_Log_Log*>(features[i]->data); } } @@ -183,7 +183,7 @@ instantiate(const LV2UI_Descriptor* descriptor, static void cleanup(LV2UI_Handle handle) { - ingen::IngenLV2UI* ui = (ingen::IngenLV2UI*)handle; + ingen::IngenLV2UI* ui = static_cast<ingen::IngenLV2UI*>(handle); delete ui; } @@ -194,8 +194,8 @@ port_event(LV2UI_Handle handle, uint32_t format, const void* buffer) { - ingen::IngenLV2UI* ui = (ingen::IngenLV2UI*)handle; - const LV2_Atom* atom = (const LV2_Atom*)buffer; + ingen::IngenLV2UI* ui = static_cast<ingen::IngenLV2UI*>(handle); + const LV2_Atom* atom = static_cast<const LV2_Atom*>(buffer); ui->reader->write(atom); } |