From 0c2bd1b160fda4e77919889ac80f9460967fa251 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sat, 19 Jan 2019 16:30:07 +0330 Subject: [PATCH] [dwrite] Fix delete-non-virtual-dtor warning (#1550) --- src/hb-directwrite.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hb-directwrite.cc b/src/hb-directwrite.cc index d691d40be..aaf10a1d6 100644 --- a/src/hb-directwrite.cc +++ b/src/hb-directwrite.cc @@ -71,6 +71,8 @@ public: *fontFileStream = mFontFileStream; return S_OK; } + + virtual ~DWriteFontFileLoader() {} }; class DWriteFontFileStream : public IDWriteFontFileStream @@ -122,6 +124,8 @@ public: virtual HRESULT STDMETHODCALLTYPE GetLastWriteTime (OUT UINT64* lastWriteTime) { return E_NOTIMPL; } + + virtual ~DWriteFontFileStream() {} };