summaryrefslogtreecommitdiffstats
path: root/src/AtomReader.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-10 20:36:36 +0000
committerDavid Robillard <d@drobilla.net>2012-08-10 20:36:36 +0000
commit762435ea92bbeed0b36afc5fa4303540f3e72ba1 (patch)
treebb503e6f6d7788f45c398ffb0f35b42f73390a40 /src/AtomReader.cpp
parent16d7c76a60f8bedd23f1b3fb1f5357b0d548dab2 (diff)
downloadingen-762435ea92bbeed0b36afc5fa4303540f3e72ba1.tar.gz
ingen-762435ea92bbeed0b36afc5fa4303540f3e72ba1.tar.bz2
ingen-762435ea92bbeed0b36afc5fa4303540f3e72ba1.zip
Fix various const violations.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4647 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/AtomReader.cpp')
-rw-r--r--src/AtomReader.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/AtomReader.cpp b/src/AtomReader.cpp
index f27cd5a5..77c5629e 100644
--- a/src/AtomReader.cpp
+++ b/src/AtomReader.cpp
@@ -46,7 +46,7 @@ AtomReader::get_atom(const LV2_Atom* in, Raul::Atom& out)
% urid->body);
}
} else {
- out = _forge.alloc(in->size, in->type, LV2_ATOM_BODY(in));
+ out = _forge.alloc(in->size, in->type, LV2_ATOM_BODY_CONST(in));
}
}
}
@@ -71,9 +71,9 @@ const char*
AtomReader::atom_to_uri(const LV2_Atom* atom)
{
if (atom && atom->type == _uris.atom_URI) {
- return (const char*)LV2_ATOM_BODY(atom);
+ return (const char*)LV2_ATOM_BODY_CONST(atom);
} else if (atom && atom->type == _uris.atom_URID) {
- return _map.unmap_uri(((LV2_Atom_URID*)atom)->body);
+ return _map.unmap_uri(((const LV2_Atom_URID*)atom)->body);
} else {
return NULL;
}
@@ -259,8 +259,8 @@ AtomReader::write(const LV2_Atom* msg)
Raul::warn << "Response message body is not integer" << std::endl;
return false;
}
- _iface.response(((LV2_Atom_Int*)request)->body,
- (Ingen::Status)((LV2_Atom_Int*)body)->body,
+ _iface.response(((const LV2_Atom_Int*)request)->body,
+ (Ingen::Status)((const LV2_Atom_Int*)body)->body,
subject_uri ? subject_uri : "");
} else {
Raul::warn << "Unknown object type <"