diff options
author | David Robillard <d@drobilla.net> | 2020-12-14 20:44:56 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-14 22:04:29 +0100 |
commit | 1d3af34bd3ab9b55cdb610922aac39e62fdb13a9 (patch) | |
tree | aaee6d674c3081c933ff33eb6d1269d87208bd49 /src/gui/ingen_gui_lv2.cpp | |
parent | d10796d12fd477215fc024078c0f2d83abc6515e (diff) | |
download | ingen-1d3af34bd3ab9b55cdb610922aac39e62fdb13a9.tar.gz ingen-1d3af34bd3ab9b55cdb610922aac39e62fdb13a9.tar.bz2 ingen-1d3af34bd3ab9b55cdb610922aac39e62fdb13a9.zip |
Use "auto" to avoid redundancy
Diffstat (limited to 'src/gui/ingen_gui_lv2.cpp')
-rw-r--r-- | src/gui/ingen_gui_lv2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/ingen_gui_lv2.cpp b/src/gui/ingen_gui_lv2.cpp index 35e74f7d..6d6f9cee 100644 --- a/src/gui/ingen_gui_lv2.cpp +++ b/src/gui/ingen_gui_lv2.cpp @@ -108,7 +108,7 @@ instantiate(const LV2UI_Descriptor* descriptor, { ingen::set_bundle_path(bundle_path); - ingen::IngenLV2UI* ui = new ingen::IngenLV2UI(); + auto* ui = new ingen::IngenLV2UI(); LV2_URID_Map* map = nullptr; LV2_URID_Unmap* unmap = nullptr; @@ -177,7 +177,7 @@ instantiate(const LV2UI_Descriptor* descriptor, static void cleanup(LV2UI_Handle handle) { - ingen::IngenLV2UI* ui = static_cast<ingen::IngenLV2UI*>(handle); + auto* ui = static_cast<ingen::IngenLV2UI*>(handle); delete ui; } @@ -188,8 +188,8 @@ port_event(LV2UI_Handle handle, uint32_t format, const void* buffer) { - ingen::IngenLV2UI* ui = static_cast<ingen::IngenLV2UI*>(handle); - const LV2_Atom* atom = static_cast<const LV2_Atom*>(buffer); + auto* ui = static_cast<ingen::IngenLV2UI*>(handle); + const auto* atom = static_cast<const LV2_Atom*>(buffer); ui->reader->write(atom); } |