summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2014-04-25 23:40:22 +0100
committerfalkTX <falktx@gmail.com>2014-04-25 23:40:22 +0100
commitf204f64c074627617f198efe7b38a6bd8e6e87f6 (patch)
tree830fd3adc1214276aace7e12fb94ff081fa0d121
parent18cefbae60e109d7e28465fbab201f89328e94aa (diff)
Fix build
-rw-r--r--libs/distrho/src/DistrhoPluginInternal.hpp2
-rw-r--r--libs/distrho/src/DistrhoPluginLV2.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/distrho/src/DistrhoPluginInternal.hpp b/libs/distrho/src/DistrhoPluginInternal.hpp
index 0625935..c863284 100644
--- a/libs/distrho/src/DistrhoPluginInternal.hpp
+++ b/libs/distrho/src/DistrhoPluginInternal.hpp
@@ -303,7 +303,7 @@ public:
void setState(const char* const key, const char* const value)
{
- DISTRHO_SAFE_ASSERT_RETURN(fData != nullptr && index < fData->stateCount,);
+ DISTRHO_SAFE_ASSERT_RETURN(fData != nullptr,);
DISTRHO_SAFE_ASSERT_RETURN(key != nullptr && key[0] != '\0',);
DISTRHO_SAFE_ASSERT_RETURN(value != nullptr,);
diff --git a/libs/distrho/src/DistrhoPluginLV2.cpp b/libs/distrho/src/DistrhoPluginLV2.cpp
index 8bd690c..ffb7591 100644
--- a/libs/distrho/src/DistrhoPluginLV2.cpp
+++ b/libs/distrho/src/DistrhoPluginLV2.cpp
@@ -764,7 +764,7 @@ private:
fPlugin.setState(key, newValue);
// check if we want to save this key
- if (! fPlugin.wantsStateKey(key))
+ if (! fPlugin.wantStateKey(key))
return;
// check if key already exists