summaryrefslogtreecommitdiff
path: root/core/include
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-12-10 15:03:16 -0800
committerTom Sepez <tsepez@chromium.org>2015-12-10 15:03:16 -0800
commit7db2a535f163e7ce5995da12161ebd0214f0f75a (patch)
tree0011af492c814606716cd62f0f6132ff83783c75 /core/include
parentf32c969bce6743fca1e7ff796b54a1692d26d7f0 (diff)
downloadpdfium-7db2a535f163e7ce5995da12161ebd0214f0f75a.tar.xz
Replace several more CFX_MapPtrToPtr with std::set or std::map
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1520643002 .
Diffstat (limited to 'core/include')
-rw-r--r--core/include/fpdfapi/fpdf_objects.h5
-rw-r--r--core/include/fpdfdoc/fpdf_doc.h5
-rw-r--r--core/include/fxge/fx_font.h2
3 files changed, 6 insertions, 6 deletions
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 <set>
+
#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<FX_DWORD>* 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<CPDF_Stream*, CPDF_Form*> 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<CFX_ByteString, CFX_SizeGlyphCache*> m_SizeMap;
- CFX_MapPtrToPtr m_PathMap;
+ std::map<FX_DWORD, CFX_PathData*> m_PathMap;
CFX_DIBitmap* m_pBitmap;
};