summaryrefslogtreecommitdiff
path: root/drumgizmo
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2016-04-03 13:37:21 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2016-04-03 13:37:21 +0200
commite6c35b1b336fd4d48fb4a87f3ae39372bc906acc (patch)
tree63a88819f9aca8e455ffb54e7021dcad25e51da5 /drumgizmo
parent915efdcda8f5c26e1f173bd0f52cbc59aa337a03 (diff)
Updated method signature in regard to const and reference.
Diffstat (limited to 'drumgizmo')
-rw-r--r--drumgizmo/input/test.cc4
-rw-r--r--drumgizmo/input/test.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/drumgizmo/input/test.cc b/drumgizmo/input/test.cc
index a611256..1315c46 100644
--- a/drumgizmo/input/test.cc
+++ b/drumgizmo/input/test.cc
@@ -42,12 +42,12 @@ TestInputEngine::~TestInputEngine()
{
}
-bool TestInputEngine::init(Instruments& instruments)
+bool TestInputEngine::init(const Instruments& instruments)
{
return true;
}
-void TestInputEngine::setParm(std::string parm, std::string value)
+void TestInputEngine::setParm(const std::string& parm, const std::string& value)
{
/*
if(parm == "probability")
diff --git a/drumgizmo/input/test.h b/drumgizmo/input/test.h
index 2f5e482..7e88cb5 100644
--- a/drumgizmo/input/test.h
+++ b/drumgizmo/input/test.h
@@ -38,8 +38,8 @@ public:
~TestInputEngine();
// based on AudioInputEngine
- bool init(Instruments& instruments) override;
- void setParm(std::string parm, std::string value) override;
+ bool init(const Instruments& instruments) override;
+ void setParm(const std::string& parm, const std::string& value) override;
bool start() override;
void stop() override;
void pre() override;