From 6a8658f04ce69a699bfd034327a8bbb27c708618 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Tue, 7 Aug 2018 14:42:16 +0200 Subject: [PATCH] Declare destructor virtual for IMetarDecoderPart --- src/blackmisc/weather/metardecoder.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/blackmisc/weather/metardecoder.cpp b/src/blackmisc/weather/metardecoder.cpp index 77cab4154..19deb437d 100644 --- a/src/blackmisc/weather/metardecoder.cpp +++ b/src/blackmisc/weather/metardecoder.cpp @@ -48,6 +48,8 @@ namespace BlackMisc class IMetarDecoderPart { + public: + virtual ~IMetarDecoderPart(); protected: virtual bool isRepeatable() const { return false; } virtual const QRegularExpression &getRegExp() const = 0; @@ -92,6 +94,9 @@ namespace BlackMisc } }; + IMetarDecoderPart::~IMetarDecoderPart() + { } + class CMetarDecoderReportType : public IMetarDecoderPart { protected: