From 5aa932bfa7aa701909112e3cc69941b9b6b1170e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 Dec 2013 22:29:00 +0000 Subject: Fix const-violating casts. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5173 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/mix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/mix.cpp b/src/server/mix.cpp index 7ca36557..22ae60b0 100644 --- a/src/server/mix.cpp +++ b/src/server/mix.cpp @@ -24,7 +24,7 @@ namespace Ingen { namespace Server { static inline bool -is_end(const Buffer* buf, LV2_Atom_Event* ev) +is_end(const Buffer* buf, const LV2_Atom_Event* ev) { return lv2_atom_sequence_is_end( (const LV2_Atom_Sequence_Body*)LV2_ATOM_BODY_CONST(buf->atom()), @@ -66,7 +66,7 @@ mix(const Context& context, } } } else if (dst->is_sequence()) { - LV2_Atom_Event* iters[num_srcs]; + const LV2_Atom_Event* iters[num_srcs]; for (uint32_t i = 0; i < num_srcs; ++i) { iters[i] = NULL; if (srcs[i]->is_sequence()) { -- cgit v1.2.1