diff options
author | falkTX <falktx@gmail.com> | 2015-04-26 21:22:11 +0200 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2015-04-26 21:22:11 +0200 |
commit | 4ecfc82f6b42025e401fb529146d920c006c1072 (patch) | |
tree | f2c3fba31cffef3a0a748212f76ce6e97543cec0 | |
parent | 67b302dc3b038fafa20fbe6fa6bdddfbaf9d0b02 (diff) |
Minor fixing
-rw-r--r-- | distrho/DistrhoPlugin.hpp | 5 | ||||
-rw-r--r-- | distrho/extra/String.hpp | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/distrho/DistrhoPlugin.hpp b/distrho/DistrhoPlugin.hpp index c59a694c..94c93d57 100644 --- a/distrho/DistrhoPlugin.hpp +++ b/distrho/DistrhoPlugin.hpp @@ -18,6 +18,7 @@ #define DISTRHO_PLUGIN_HPP_INCLUDED #include "extra/String.hpp" +#include "extra/LeakDetector.hpp" #include "src/DistrhoPluginChecks.h" START_NAMESPACE_DISTRHO @@ -591,7 +592,7 @@ protected: This function will be called once, shortly after the plugin is created.@n Must be implemented by your plugin class only if DISTRHO_PLUGIN_WANT_STATE is enabled. */ - virtual void initState(uint32_t index, String& stateKey, String& defaultStateValue) = 0; + virtual void initState(uint32_t index, const char* stateKey, String& defaultStateValue) = 0; #endif /* -------------------------------------------------------------------------------------------------------- @@ -625,7 +626,7 @@ protected: Change an internal state @a key to @a value.@n Must be implemented by your plugin class only if DISTRHO_PLUGIN_WANT_STATE is enabled. */ - virtual void setState(const String& key, const String& value) = 0; + virtual void setState(const char* key, const char* value) = 0; #endif /* -------------------------------------------------------------------------------------------------------- diff --git a/distrho/extra/String.hpp b/distrho/extra/String.hpp index 2e2bfe9f..6cf96d46 100644 --- a/distrho/extra/String.hpp +++ b/distrho/extra/String.hpp @@ -17,7 +17,7 @@ #ifndef DISTRHO_STRING_HPP_INCLUDED #define DISTRHO_STRING_HPP_INCLUDED -#include "LeakDetector.hpp" +#include "../DistrhoUtils.hpp" START_NAMESPACE_DISTRHO |