From 762435ea92bbeed0b36afc5fa4303540f3e72ba1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 10 Aug 2012 20:36:36 +0000 Subject: Fix various const violations. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4647 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/ControlBindings.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/server/ControlBindings.cpp') diff --git a/src/server/ControlBindings.cpp b/src/server/ControlBindings.cpp index 4a4e1a04..c42002ab 100644 --- a/src/server/ControlBindings.cpp +++ b/src/server/ControlBindings.cpp @@ -70,7 +70,8 @@ ControlBindings::binding_key(const Raul::Atom& binding) const Key key; LV2_Atom* num = NULL; if (binding.type() == uris.atom_Blank) { - LV2_Atom_Object_Body* obj = (LV2_Atom_Object_Body*)binding.get_body(); + const LV2_Atom_Object_Body* obj = (const LV2_Atom_Object_Body*) + binding.get_body(); if (obj->otype == uris.midi_Bender) { key = Key(MIDI_BENDER); } else if (obj->otype == uris.midi_ChannelPressure) { @@ -347,7 +348,7 @@ ControlBindings::bind(ProcessContext& context, Key key) context.notify(uris.ingen_controlBinding, context.start(), _learn_port, - atom->size, atom->type, LV2_ATOM_BODY(atom)); + atom->size, atom->type, LV2_ATOM_BODY_CONST(atom)); _learn_port = NULL; return true; -- cgit v1.2.1