summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-12-15 22:29:00 +0000
committerDavid Robillard <d@drobilla.net>2013-12-15 22:29:00 +0000
commit5aa932bfa7aa701909112e3cc69941b9b6b1170e (patch)
tree61ea24e843e022d6625c171a8974d810d19923d8 /src
parentb50590f499271e6c1807285db538cd7684da327f (diff)
downloadingen-5aa932bfa7aa701909112e3cc69941b9b6b1170e.tar.gz
ingen-5aa932bfa7aa701909112e3cc69941b9b6b1170e.tar.bz2
ingen-5aa932bfa7aa701909112e3cc69941b9b6b1170e.zip
Fix const-violating casts.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5173 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/server/mix.cpp4
1 files changed, 2 insertions, 2 deletions
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()) {