From e3ad180e9452be85ff35a10b4bb4a0dbf1ac11b4 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 6 Dec 2016 20:07:50 +0100 Subject: Make destructors virtual as appropriate. --- src/drumkitparser.h | 1 + src/inputfilter.h | 2 ++ src/instrumentparser.h | 1 + 3 files changed, 4 insertions(+) (limited to 'src') diff --git a/src/drumkitparser.h b/src/drumkitparser.h index 444b459..cc1b3d6 100644 --- a/src/drumkitparser.h +++ b/src/drumkitparser.h @@ -35,6 +35,7 @@ class DrumKitParser { public: DrumKitParser(Settings& setting, DrumKit& kit, Random& rand); + virtual ~DrumKitParser() = default; virtual int parseFile(const std::string& filename) override; diff --git a/src/inputfilter.h b/src/inputfilter.h index 26f7294..45dd01e 100644 --- a/src/inputfilter.h +++ b/src/inputfilter.h @@ -32,6 +32,8 @@ class InputFilter { public: + virtual ~InputFilter() = default; + //! Implement to filter a single event. //! \param[in,out] event The event being processed. The filter method //! might alter any of the event parameters. diff --git a/src/instrumentparser.h b/src/instrumentparser.h index 793bfb6..512f12f 100644 --- a/src/instrumentparser.h +++ b/src/instrumentparser.h @@ -37,6 +37,7 @@ class InstrumentParser { public: InstrumentParser(Instrument &instrument); + virtual ~InstrumentParser() = default; virtual int parseFile(const std::string& filename) override; -- cgit v1.2.3