summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdfview.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-08-14 14:23:57 -0700
committerLei Zhang <thestig@chromium.org>2015-08-14 14:23:57 -0700
commit0f6b51c0fdd14f5762bf3c7412ac59c825443cc3 (patch)
tree782b1fe38da61394477cabc08c712c11e57e50dd /fpdfsdk/src/fpdfview.cpp
parentc2c3f7b5f0396409451a9d344f35ec1929a76e9f (diff)
downloadpdfium-0f6b51c0fdd14f5762bf3c7412ac59c825443cc3.tar.xz
Use override in more classes in fpdfsdk/
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1287193005 .
Diffstat (limited to 'fpdfsdk/src/fpdfview.cpp')
-rw-r--r--fpdfsdk/src/fpdfview.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp
index 2700aebddc..a1d5689c79 100644
--- a/fpdfsdk/src/fpdfview.cpp
+++ b/fpdfsdk/src/fpdfview.cpp
@@ -71,9 +71,10 @@ CCodec_ModuleMgr* g_pCodecModule = nullptr;
class CFontMapper : public IPDF_FontMapper {
public:
CFontMapper();
- virtual ~CFontMapper();
+ ~CFontMapper() override;
- virtual FT_Face FindSubstFont(
+ // IPDF_FontMapper
+ FT_Face FindSubstFont(
CPDF_Document* pDoc, // [IN] The PDF document
const CFX_ByteString& face_name, // [IN] Original name
FX_BOOL bTrueType, // [IN] TrueType or Type1
@@ -82,7 +83,7 @@ class CFontMapper : public IPDF_FontMapper {
int CharsetCP, // [IN] code page for charset (see Win32 GetACP())
FX_BOOL bVertical,
CPDF_SubstFont* pSubstFont // [OUT] Subst font data
- );
+ ) override;
FT_Face m_SysFace;
};
@@ -204,6 +205,8 @@ class CMemFile final : public IFX_FileRead {
}
private:
+ ~CMemFile() {}
+
uint8_t* m_pBuf;
FX_FILESIZE m_size;
};