summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/drumgizmo_plugin.cc2
-rw-r--r--plugin/drumgizmo_plugin.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc
index 4e3252d..f1cebd3 100644
--- a/plugin/drumgizmo_plugin.cc
+++ b/plugin/drumgizmo_plugin.cc
@@ -182,7 +182,7 @@ DrumGizmoPlugin::Input::Input(DrumGizmoPlugin& plugin)
{
}
-bool DrumGizmoPlugin::Input::init(Instruments &instruments)
+bool DrumGizmoPlugin::Input::init(const Instruments &instruments)
{
this->instruments = &instruments;
return true;
diff --git a/plugin/drumgizmo_plugin.h b/plugin/drumgizmo_plugin.h
index bd970f1..767060c 100644
--- a/plugin/drumgizmo_plugin.h
+++ b/plugin/drumgizmo_plugin.h
@@ -108,7 +108,7 @@ private:
public:
Input(DrumGizmoPlugin& plugin);
- bool init(Instruments& instruments) override;
+ bool init(const Instruments& instruments) override;
void setParm(const std::string& parm, const std::string& value) override;
@@ -121,7 +121,7 @@ private:
protected:
DrumGizmoPlugin& plugin;
- Instruments* instruments{nullptr};
+ const Instruments* instruments{nullptr};
};
class Output