diff options
author | David Robillard <d@drobilla.net> | 2012-08-10 20:36:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-10 20:36:36 +0000 |
commit | 762435ea92bbeed0b36afc5fa4303540f3e72ba1 (patch) | |
tree | bb503e6f6d7788f45c398ffb0f35b42f73390a40 /src/client | |
parent | 16d7c76a60f8bedd23f1b3fb1f5357b0d548dab2 (diff) | |
download | ingen-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/client')
-rw-r--r-- | src/client/PluginUI.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp index 0f61924a..c6c3d926 100644 --- a/src/client/PluginUI.cpp +++ b/src/client/PluginUI.cpp @@ -53,18 +53,18 @@ lv2_ui_write(SuilController controller, // float (special case, always 0) if (format == 0) { assert(buffer_size == 4); - if (*(float*)buffer == port->value().get_float()) + if (*(const float*)buffer == port->value().get_float()) return; // do nothing (handle stupid plugin UIs that feed back) ui->world()->interface()->set_property( port->path(), uris.ingen_value, - ui->world()->forge().make(*(float*)buffer)); + ui->world()->forge().make(*(const float*)buffer)); } else if (format == uris.atom_eventTransfer.id) { - LV2_Atom* atom = (LV2_Atom*)buffer; + const LV2_Atom* atom = (const LV2_Atom*)buffer; Raul::Atom val = ui->world()->forge().alloc( - atom->size, atom->type, LV2_ATOM_BODY(atom)); + atom->size, atom->type, LV2_ATOM_BODY_CONST(atom)); ui->world()->interface()->set_property(port->path(), uris.ingen_value, val); |