From 9615f8dbf19be50c419759920e7595bcf7e5350a Mon Sep 17 00:00:00 2001 From: "mtklein@google.com" Date: Wed, 20 Nov 2013 14:29:51 +0000 Subject: Add missing (trivial) virtual destructors. BUG= R=scroggo@google.com Review URL: https://codereview.chromium.org/78543002 git-svn-id: http://skia.googlecode.com/svn/trunk@12312 2bbb7eff-a529-9590-31e7-b0007b416f81 --- experimental/PdfViewer/SkPdfFont.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'experimental') diff --git a/experimental/PdfViewer/SkPdfFont.h b/experimental/PdfViewer/SkPdfFont.h index 85ce6512d9..71f98db2ca 100644 --- a/experimental/PdfViewer/SkPdfFont.h +++ b/experimental/PdfViewer/SkPdfFont.h @@ -77,6 +77,7 @@ public: class SkPdfEncoding { public: + virtual ~SkPdfEncoding() {} virtual bool decodeText(const SkUnencodedText& textIn, SkDecodedText* textOut) const = 0; static SkPdfEncoding* fromName(const char* name); }; @@ -96,6 +97,7 @@ public: class SkPdfIdentityHEncoding : public SkPdfEncoding { public: + virtual ~SkPdfIdentityHEncoding() {} virtual bool decodeText(const SkUnencodedText& textIn, SkDecodedText* textOut) const { // TODO(edisonn): SkASSERT(textIn.len % 2 == 0); or report error? @@ -119,6 +121,7 @@ public: // TODO(edisonn): using this one when no encoding is specified class SkPdfDefaultEncoding : public SkPdfEncoding { public: + virtual ~SkPdfDefaultEncoding() {} virtual bool decodeText(const SkUnencodedText& textIn, SkDecodedText* textOut) const { // TODO(edisonn): SkASSERT(textIn.len % 2 == 0); or report error? @@ -141,6 +144,7 @@ public: class SkPdfCIDToGIDMapIdentityEncoding : public SkPdfEncoding { public: + virtual ~SkPdfCIDToGIDMapIdentityEncoding() {} virtual bool decodeText(const SkUnencodedText& textIn, SkDecodedText* textOut) const { // TODO(edisonn): SkASSERT(textIn.len % 2 == 0); or report error? -- cgit v1.2.3