From 2719f80d6390c4f9c2092f4af603a5f5ace533e1 Mon Sep 17 00:00:00 2001 From: Takashi Sawanaka Date: Sat, 16 May 2020 16:52:57 +0900 Subject: [PATCH] Reduce compilation warnings --- Src/Common/ExConverter.cpp | 2 +- Src/Common/ExConverter.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/Common/ExConverter.cpp b/Src/Common/ExConverter.cpp index 2dec9d835..153a1d4a9 100644 --- a/Src/Common/ExConverter.cpp +++ b/Src/Common/ExConverter.cpp @@ -44,7 +44,7 @@ public: { } - ~CExconverterMLang() + virtual ~CExconverterMLang() override { if (m_pmlang != nullptr) m_pmlang->Release(); diff --git a/Src/Common/ExConverter.h b/Src/Common/ExConverter.h index b247cdd25..7d5554e2d 100644 --- a/Src/Common/ExConverter.h +++ b/Src/Common/ExConverter.h @@ -13,6 +13,7 @@ struct CodePageInfo struct IExconverter { + virtual ~IExconverter() {} virtual bool initialize() = 0; virtual bool convert(int srcCodepage, int dstCodepage, const unsigned char * src, size_t * srcbytes, unsigned char * dest, size_t * destbytes) = 0; virtual bool convertFromUnicode(int dstCodepage, const wchar_t * src, size_t * srcchars, char * dest, size_t *destbytes) = 0; -- 2.11.0