DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 905dcc39659ac28d56e04b9340b995fa0ea00b81
parent 6a87eae1df6089dd3864412644fd90d0150fd255
Author: falkTX <falktx@gmail.com>
Date:   Fri, 25 Apr 2014 23:40:20 +0100

Fix build

Diffstat:
Mdistrho/src/DistrhoPluginInternal.hpp | 2+-
Mdistrho/src/DistrhoPluginLV2.cpp | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/distrho/src/DistrhoPluginInternal.hpp b/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/distrho/src/DistrhoPluginLV2.cpp b/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