diff options
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/formfiller/cba_fontmap.cpp | 10 | ||||
-rw-r--r-- | fpdfsdk/formfiller/cba_fontmap.h | 6 |
2 files changed, 5 insertions, 11 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(); } diff --git a/fpdfsdk/formfiller/cba_fontmap.h b/fpdfsdk/formfiller/cba_fontmap.h index 9d9f2e002a..0ca07eb984 100644 --- a/fpdfsdk/formfiller/cba_fontmap.h +++ b/fpdfsdk/formfiller/cba_fontmap.h @@ -36,11 +36,11 @@ class CBA_FontMap : public CPWL_FontMap { CPDF_Font* GetAnnotDefaultFont(ByteString* csNameTag); void AddFontToAnnotDict(CPDF_Font* pFont, const ByteString& sAlias); - UnownedPtr<CPDF_Document> m_pDocument; - UnownedPtr<CPDF_Dictionary> m_pAnnotDict; + UnownedPtr<CPDF_Document> const m_pDocument; + UnownedPtr<CPDF_Dictionary> const m_pAnnotDict; UnownedPtr<CPDF_Font> m_pDefaultFont; ByteString m_sDefaultFontName; - ByteString m_sAPType; + ByteString m_sAPType = "N"; }; #endif // FPDFSDK_FORMFILLER_CBA_FONTMAP_H_ |