From 7f84f53bad767dfe2d1a2900b58c4dc32e9a8059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sun, 29 Jul 2018 13:51:51 +0200 Subject: Remove useless comment and convert struct into C++ style. --- pluginlv2.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pluginlv2.cc b/pluginlv2.cc index 364a915..7593ff4 100644 --- a/pluginlv2.cc +++ b/pluginlv2.cc @@ -252,16 +252,15 @@ _lv2_atom_sequence_append_event(LV2_Atom_Sequence* seq, void Sequence::addMidiEvent(std::size_t pos, const char* data, std::size_t size) { - typedef struct { + struct MIDINoteEvent { LV2_Atom_Event event; uint8_t msg[6]; - } MIDINoteEvent; - + }; MIDINoteEvent ev; ev.event.time.frames = pos; ev.event.body.type = map.map(map.handle, LV2_MIDI__MidiEvent); - ev.event.body.size = size;//sizeof(LV2_Atom_Event) + size; + ev.event.body.size = size; assert(size <= sizeof(ev.msg)); // Assert that we have room for the message -- cgit v1.2.3