aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-12-25 03:24:33 +0000
committerDavid Robillard <d@drobilla.net>2013-12-25 03:24:33 +0000
commit61a57c5220238a60c7a3b2a21536649e50a56f4c (patch)
tree46dbb77fffc73ee5ed799ad7ab841a1a6c53101a /src
parent4c44124660da427a2932211d1e428c69f6d94376 (diff)
downloadmda.lv2-61a57c5220238a60c7a3b2a21536649e50a56f4c.tar.gz
mda.lv2-61a57c5220238a60c7a3b2a21536649e50a56f4c.tar.bz2
mda.lv2-61a57c5220238a60c7a3b2a21536649e50a56f4c.zip
Fix more const-correctness violations.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mda.lv2@5196 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/mdaDX10.cpp2
-rw-r--r--src/mdaEPiano.cpp2
-rw-r--r--src/mdaJX10.cpp2
-rw-r--r--src/mdaPiano.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/mdaDX10.cpp b/src/mdaDX10.cpp
index a6ca283..c7ba0a2 100644
--- a/src/mdaDX10.cpp
+++ b/src/mdaDX10.cpp
@@ -453,7 +453,7 @@ int32_t mdaDX10::processEvent(const LV2_Atom_Event* ev)
if (ev->body.type != midiEventType)
return 0;
- const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY(&ev->body);
+ const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY_CONST(&ev->body);
switch(midiData[0] & 0xf0) //status byte (all channels)
{
diff --git a/src/mdaEPiano.cpp b/src/mdaEPiano.cpp
index a7fe066..e967c22 100644
--- a/src/mdaEPiano.cpp
+++ b/src/mdaEPiano.cpp
@@ -505,7 +505,7 @@ int32_t mdaEPiano::processEvent(const LV2_Atom_Event* ev)
if (ev->body.type != midiEventType)
return 0;
- const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY(&ev->body);
+ const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY_CONST(&ev->body);
switch(midiData[0] & 0xf0) //status byte (all channels)
{
diff --git a/src/mdaJX10.cpp b/src/mdaJX10.cpp
index 9805767..fb44899 100644
--- a/src/mdaJX10.cpp
+++ b/src/mdaJX10.cpp
@@ -751,7 +751,7 @@ int32_t mdaJX10::processEvent(const LV2_Atom_Event* ev)
if (ev->body.type != midiEventType)
return 0;
- const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY(&ev->body);
+ const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY_CONST(&ev->body);
switch(midiData[0] & 0xf0) //status byte (all channels)
{
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp
index 5ae3bf0..3e15e34 100644
--- a/src/mdaPiano.cpp
+++ b/src/mdaPiano.cpp
@@ -468,7 +468,7 @@ int32_t mdaPiano::processEvent(const LV2_Atom_Event* ev)
if (ev->body.type != midiEventType)
return 0;
- const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY(&ev->body);
+ const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY_CONST(&ev->body);
switch(midiData[0] & 0xf0) //status byte (all channels)
{