From d1977ed28176c5d2a8d065ad3731af486e83acb4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Dec 2017 11:25:21 +0100 Subject: Clean up delta key comparison --- src/server/events/Delta.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/events/Delta.cpp b/src/server/events/Delta.cpp index 16fc5d37..0c50aabc 100644 --- a/src/server/events/Delta.cpp +++ b/src/server/events/Delta.cpp @@ -514,9 +514,9 @@ Delta::execute(RunContext& context) break; case SpecialType::NONE: if (port) { - if (!strcmp(uris.lv2_minimum.c_str(), key.c_str())) { + if (key == uris.lv2_minimum) { port->set_minimum(value); - } else if (!strcmp(uris.lv2_maximum.c_str(), key.c_str())) { + } else if (key == uris.lv2_maximum) { port->set_maximum(value); } } -- cgit v1.2.1