summaryrefslogtreecommitdiff
path: root/fpdfsdk/formfiller/cba_fontmap.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-04 01:51:46 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-04 01:51:46 +0000
commitf21b88ef08d6f6d64e783f55819fc8b86c3b370e (patch)
treee9b361f3e4441bb028eee4da5ad2f47a9b93d930 /fpdfsdk/formfiller/cba_fontmap.cpp
parente819c2057ffdea90fef40d5801aec22ecd8571cd (diff)
downloadpdfium-f21b88ef08d6f6d64e783f55819fc8b86c3b370e.tar.xz
Do more CBA_FontMap initialization in the ctor and header.
Change-Id: I705a49198a91b67aa403beea4446095a6a359259 Reviewed-on: https://pdfium-review.googlesource.com/39415 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/formfiller/cba_fontmap.cpp')
-rw-r--r--fpdfsdk/formfiller/cba_fontmap.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/fpdfsdk/formfiller/cba_fontmap.cpp b/fpdfsdk/formfiller/cba_fontmap.cpp
index ae0cc80bf2..98464cb6d6 100644
--- a/fpdfsdk/formfiller/cba_fontmap.cpp
+++ b/fpdfsdk/formfiller/cba_fontmap.cpp
@@ -23,14 +23,8 @@
CBA_FontMap::CBA_FontMap(CPDFSDK_Annot* pAnnot,
CFX_SystemHandler* pSystemHandler)
: CPWL_FontMap(pSystemHandler),
- m_pDocument(nullptr),
- m_pAnnotDict(nullptr),
- m_pDefaultFont(nullptr),
- m_sAPType("N") {
- CPDF_Page* pPage = pAnnot->GetPDFPage();
-
- m_pDocument = pPage->GetDocument();
- m_pAnnotDict = pAnnot->GetPDFAnnot()->GetAnnotDict();
+ m_pDocument(pAnnot->GetPDFPage()->GetDocument()),
+ m_pAnnotDict(pAnnot->GetPDFAnnot()->GetAnnotDict()) {
Initialize();
}