summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-16 11:25:21 +0100
committerDavid Robillard <d@drobilla.net>2017-12-16 13:57:39 +0100
commitd1977ed28176c5d2a8d065ad3731af486e83acb4 (patch)
tree3df825f992c4b0a3d6d544332187a0bd8d906c25
parent103fc81cf330aa1c47fa9f42b3551d426e1d3b7f (diff)
downloadingen-d1977ed28176c5d2a8d065ad3731af486e83acb4.tar.gz
ingen-d1977ed28176c5d2a8d065ad3731af486e83acb4.tar.bz2
ingen-d1977ed28176c5d2a8d065ad3731af486e83acb4.zip
Clean up delta key comparison
-rw-r--r--src/server/events/Delta.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}
}