summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-12-01 21:03:38 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-12-01 21:03:38 +0100
commit020900458c11838faae36c134da14945d93424a7 (patch)
tree9123a39258ba1458c2009653b6a73cca3fb5687f /src
parent0a0becd384da4b0ed892dcd32285dd646ad720df (diff)
Protect file string.
Diffstat (limited to 'src')
-rw-r--r--src/drumkit.cc5
-rw-r--r--src/drumkit.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/drumkit.cc b/src/drumkit.cc
index 0104720..c2aa221 100644
--- a/src/drumkit.cc
+++ b/src/drumkit.cc
@@ -57,6 +57,11 @@ bool DrumKit::isValid()
return this == magic;
}
+std::string DrumKit::file()
+{
+ return _file;
+}
+
std::string DrumKit::name()
{
return _name;
diff --git a/src/drumkit.h b/src/drumkit.h
index c1e5a69..82fe69b 100644
--- a/src/drumkit.h
+++ b/src/drumkit.h
@@ -41,6 +41,8 @@ public:
DrumKit();
~DrumKit();
+ std::string file();
+
std::string name();
std::string description();
@@ -54,6 +56,8 @@ public:
private:
void *magic;
+ std::string _file;
+
std::string _name;
std::string _description;