summaryrefslogtreecommitdiff
path: root/src/instrument.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2018-08-02 00:07:07 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2018-08-02 00:07:07 +0200
commitbbc960dc9f5fc5a4b271712f9b5ce86db8f8299f (patch)
tree1c0f49b041d1f4cbbae0116e9983ddb7648dfc0b /src/instrument.h
parent857da27194ea621734be7df4c1d940992dbb26e9 (diff)
Pass strings by reference instead of by value.
Diffstat (limited to 'src/instrument.h')
-rw-r--r--src/instrument.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/instrument.h b/src/instrument.h
index 6deb5d2..b62e155 100644
--- a/src/instrument.h
+++ b/src/instrument.h
@@ -48,9 +48,9 @@ public:
Sample* sample(level_t level, size_t pos);
- std::string getName() const;
- std::string getDescription() const;
- std::string getGroup() const;
+ const std::string& getName() const;
+ const std::string& getDescription() const;
+ const std::string& getGroup() const;
void setGroup(const std::string& group);