From 020900458c11838faae36c134da14945d93424a7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 1 Dec 2013 21:03:38 +0100 Subject: Protect file string. --- src/drumkit.cc | 5 +++++ src/drumkit.h | 4 ++++ 2 files changed, 9 insertions(+) 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; -- cgit v1.2.3