From 7db2a535f163e7ce5995da12161ebd0214f0f75a Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 10 Dec 2015 15:03:16 -0800 Subject: Replace several more CFX_MapPtrToPtr with std::set or std::map R=thestig@chromium.org Review URL: https://codereview.chromium.org/1520643002 . --- core/include/fpdfapi/fpdf_objects.h | 5 ++++- core/include/fpdfdoc/fpdf_doc.h | 5 +---- core/include/fxge/fx_font.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'core/include') diff --git a/core/include/fpdfapi/fpdf_objects.h b/core/include/fpdfapi/fpdf_objects.h index 143e7d71c2..8522e9be64 100644 --- a/core/include/fpdfapi/fpdf_objects.h +++ b/core/include/fpdfapi/fpdf_objects.h @@ -7,6 +7,8 @@ #ifndef CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ +#include + #include "core/include/fxcrt/fx_coordinates.h" #include "core/include/fxcrt/fx_system.h" @@ -129,7 +131,8 @@ class CPDF_Object { private: CPDF_Object(const CPDF_Object& src) {} - CPDF_Object* CloneInternal(FX_BOOL bDirect, CFX_MapPtrToPtr* visited) const; + CPDF_Object* CloneInternal(FX_BOOL bDirect, + std::set* visited) const; }; class CPDF_Boolean : public CPDF_Object { public: diff --git a/core/include/fpdfdoc/fpdf_doc.h b/core/include/fpdfdoc/fpdf_doc.h index 58f81cad92..2633017013 100644 --- a/core/include/fpdfdoc/fpdf_doc.h +++ b/core/include/fpdfdoc/fpdf_doc.h @@ -421,12 +421,9 @@ class CPDF_Annot : public CFX_PrivateData { private: CPDF_Dictionary* const m_pAnnotDict; - CPDF_AnnotList* const m_pList; - const CFX_ByteString m_sSubtype; - - CFX_MapPtrToPtr m_APMap; + std::map m_APMap; }; class CPDF_AnnotList { diff --git a/core/include/fxge/fx_font.h b/core/include/fxge/fx_font.h index bb0493d4a1..8234458fe5 100644 --- a/core/include/fxge/fx_font.h +++ b/core/include/fxge/fx_font.h @@ -424,7 +424,7 @@ class CFX_FaceCache { FXFT_Face const m_Face; std::map m_SizeMap; - CFX_MapPtrToPtr m_PathMap; + std::map m_PathMap; CFX_DIBitmap* m_pBitmap; }; -- cgit v1.2.3