From 20c5726e9442ebaf3711043cc0f317a600fb9c75 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 12 Apr 2020 14:50:24 +0200 Subject: Make sure that drumkit::clear clear all metadata. --- src/drumkit.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/drumkit.h') diff --git a/src/drumkit.h b/src/drumkit.h index 4cee6be..aee5d19 100644 --- a/src/drumkit.h +++ b/src/drumkit.h @@ -18,7 +18,7 @@ * DrumGizmo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with DrumGizmo; if not, write to the Free Software @@ -68,9 +68,11 @@ private: std::string _file; - std::string _name; - std::string _description; - float _samplerate{44100.0f}; - - VersionStr _version; + struct MetaData + { + std::string _name; + std::string _description; + float _samplerate{44100.0f}; + VersionStr _version; + } metadata; }; -- cgit v1.2.3