diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-03-02 09:47:08 -0800 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-02 18:57:52 +0000 |
commit | 4df55209c2f922f33c2f69fadfff5d30026e89d2 (patch) | |
tree | 75d6daefb1f8355d64799378f3bb0088a11f4187 /xfa/fgas/font/cfgas_gefont.h | |
parent | 9642d924668222ee06eb897761646dd964bd5a29 (diff) | |
download | pdfium-4df55209c2f922f33c2f69fadfff5d30026e89d2.tar.xz |
Remove CFX_MassArrayTemplate<CFX_Rect> backing array.
The map is one-to-one, so no need for a pointer to an
externally stored rect.
Change-Id: I4cd6f728cdadeb4c7b25b6f34f5d50bb5db89623
Reviewed-on: https://pdfium-review.googlesource.com/2896
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fgas/font/cfgas_gefont.h')
-rw-r--r-- | xfa/fgas/font/cfgas_gefont.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fgas/font/cfgas_gefont.h b/xfa/fgas/font/cfgas_gefont.h index 6c9d890df4..2201721a93 100644 --- a/xfa/fgas/font/cfgas_gefont.h +++ b/xfa/fgas/font/cfgas_gefont.h @@ -109,8 +109,7 @@ class CFGAS_GEFont : public CFX_Retainable { CFX_RetainPtr<IFX_SeekableReadStream> m_pFileRead; std::unique_ptr<CFX_UnicodeEncoding> m_pFontEncoding; std::unique_ptr<CFX_DiscreteArrayTemplate<uint16_t>> m_pCharWidthMap; - std::unique_ptr<CFX_MassArrayTemplate<CFX_Rect>> m_pRectArray; - std::map<FX_WCHAR, CFX_Rect*> m_BBoxMap; // Rect owned by m_pRectArray. + std::map<FX_WCHAR, CFX_Rect> m_BBoxMap; CXFA_PDFFontMgr* m_pProvider; // not owned. std::vector<CFX_RetainPtr<CFGAS_GEFont>> m_SubstFonts; std::map<FX_WCHAR, CFX_RetainPtr<CFGAS_GEFont>> m_FontMapper; |