diff options
author | André Nusser <andre.nusser@googlemail.com> | 2018-08-02 00:07:07 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2018-08-02 00:07:07 +0200 |
commit | bbc960dc9f5fc5a4b271712f9b5ce86db8f8299f (patch) | |
tree | 1c0f49b041d1f4cbbae0116e9983ddb7648dfc0b /src/instrument.cc | |
parent | 857da27194ea621734be7df4c1d940992dbb26e9 (diff) |
Pass strings by reference instead of by value.
Diffstat (limited to 'src/instrument.cc')
-rw-r--r-- | src/instrument.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/instrument.cc b/src/instrument.cc index 6627a41..48b6505 100644 --- a/src/instrument.cc +++ b/src/instrument.cc @@ -98,17 +98,17 @@ void Instrument::finalise() } } -std::string Instrument::getName() const +const std::string& Instrument::getName() const { return _name; } -std::string Instrument::getDescription() const +const std::string& Instrument::getDescription() const { return _description; } -std::string Instrument::getGroup() const +const std::string& Instrument::getGroup() const { return _group; } |