summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/instrument.cc6
-rw-r--r--src/instrument.h6
2 files changed, 6 insertions, 6 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;
}
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);