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/socket/SocketReader.cpp | 2 +- src/socket/SocketWriter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/socket') diff --git a/src/socket/SocketReader.cpp b/src/socket/SocketReader.cpp index 9d28b405..7599038e 100644 --- a/src/socket/SocketReader.cpp +++ b/src/socket/SocketReader.cpp @@ -168,7 +168,7 @@ SocketReader::_run() sratom_read(sratom, &forge, world->c_obj(), model, _msg_node); // Call _iface methods based on atom content - ar.write((LV2_Atom*)chunk.buf); + ar.write((const LV2_Atom*)chunk.buf); // Reset everything for the next iteration chunk.len = 0; diff --git a/src/socket/SocketWriter.cpp b/src/socket/SocketWriter.cpp index ae815aea..8fa5ee05 100644 --- a/src/socket/SocketWriter.cpp +++ b/src/socket/SocketWriter.cpp @@ -80,7 +80,7 @@ bool SocketWriter::write(const LV2_Atom* msg) { sratom_write(_sratom, &_map.urid_unmap_feature()->urid_unmap, 0, - NULL, NULL, msg->type, msg->size, LV2_ATOM_BODY(msg)); + NULL, NULL, msg->type, msg->size, LV2_ATOM_BODY_CONST(msg)); serd_writer_finish(_writer); return true; } -- cgit v1.2.1