From bbc960dc9f5fc5a4b271712f9b5ce86db8f8299f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Thu, 2 Aug 2018 00:07:07 +0200 Subject: Pass strings by reference instead of by value. --- src/instrument.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/instrument.cc') 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; } -- cgit v1.2.3