From 87ac5dcd0a2faa899aea238d3d24fc84407d1a62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gl=C3=B6ckner?= Date: Tue, 29 Mar 2016 09:16:04 +0200 Subject: using const ref strings at input engine --- src/audioinputengine.h | 4 ++-- src/audioinputenginemidi.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/audioinputengine.h b/src/audioinputengine.h index b218086..d7ac9c9 100644 --- a/src/audioinputengine.h +++ b/src/audioinputengine.h @@ -40,9 +40,9 @@ public: virtual bool isMidiEngine() { return false; } - virtual bool init(Instruments &instruments) = 0; + virtual bool init(Instruments& instruments) = 0; - virtual void setParm(std::string parm, std::string value) = 0; + virtual void setParm(const std::string& parm, const std::string& value) = 0; virtual bool start() = 0; virtual void stop() = 0; diff --git a/src/audioinputenginemidi.h b/src/audioinputenginemidi.h index 3f96afe..36fcbaa 100644 --- a/src/audioinputenginemidi.h +++ b/src/audioinputenginemidi.h @@ -45,7 +45,7 @@ public: virtual bool init(Instruments &instruments) = 0; - virtual void setParm(std::string parm, std::string value) = 0; + virtual void setParm(const std::string& parm, const std::string& value) = 0; virtual bool start() = 0; virtual void stop() = 0; -- cgit v1.2.3