From e6c35b1b336fd4d48fb4a87f3ae39372bc906acc Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Sun, 3 Apr 2016 13:37:21 +0200 Subject: Updated method signature in regard to const and reference. --- drumgizmo/input/test.cc | 4 ++-- drumgizmo/input/test.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'drumgizmo/input') 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; -- cgit v1.2.3