aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-params.lv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-17 15:13:51 -0400
committerDavid Robillard <d@drobilla.net>2016-09-18 10:16:49 -0400
commit12691caa7d6a8027fa0c2b7bfa85de577a056db5 (patch)
treede05d27d7be4651122eb2153fbbf3c8ec3a14231 /plugins/eg-params.lv2
parent88bc54ee0ada443500ae4a202814ff6cd305e945 (diff)
downloadlv2-12691caa7d6a8027fa0c2b7bfa85de577a056db5.tar.xz
Fix coding style
Diffstat (limited to 'plugins/eg-params.lv2')
-rw-r--r--plugins/eg-params.lv2/params.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/eg-params.lv2/params.c b/plugins/eg-params.lv2/params.c
index 3a45061..3b6e4dd 100644
--- a/plugins/eg-params.lv2/params.c
+++ b/plugins/eg-params.lv2/params.c
@@ -301,7 +301,7 @@ set_parameter(Params* self,
return st;
}
-static const LV2_Atom *
+static const LV2_Atom*
get_parameter(Params* self, LV2_URID key)
{
const URIs* uris = &self->uris;
@@ -561,10 +561,9 @@ run(LV2_Handle instance, uint32_t sample_count)
"patch:Get property is not a URID\n");
} else {
// Received a get message, emit single property state (probably to UI)
- const LV2_URID key = property->body;
- const LV2_Atom *atom = get_parameter(self, key);
- if(atom)
- {
+ const LV2_URID key = property->body;
+ const LV2_Atom* atom = get_parameter(self, key);
+ if (atom) {
lv2_atom_forge_frame_time(&self->forge, ev->time.frames);
LV2_State_Status st = LV2_STATE_SUCCESS;
LV2_Atom_Forge_Frame frame;