From e47e0c96009b8633294eebbb9eb0e84caf525c57 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 26 Apr 2017 10:55:54 -0700 Subject: Avoid unordered_set and maps for the time being. See discussion at https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/rdxOHKzQmRY Change-Id: I1803ae97c39b592001835814e2f6674b2c7cb3ea Reviewed-on: https://pdfium-review.googlesource.com/4531 Reviewed-by: dsinclair Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- core/fpdfapi/page/cpdf_streamcontentparser.h | 5 ++--- core/fpdfdoc/cpdf_occontext.h | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/fpdfapi/page/cpdf_streamcontentparser.h b/core/fpdfapi/page/cpdf_streamcontentparser.h index 4440aabb43..50eb0eb63a 100644 --- a/core/fpdfapi/page/cpdf_streamcontentparser.h +++ b/core/fpdfapi/page/cpdf_streamcontentparser.h @@ -7,8 +7,8 @@ #ifndef CORE_FPDFAPI_PAGE_CPDF_STREAMCONTENTPARSER_H_ #define CORE_FPDFAPI_PAGE_CPDF_STREAMCONTENTPARSER_H_ +#include #include -#include #include #include "core/fpdfapi/page/cpdf_contentmark.h" @@ -73,8 +73,7 @@ class CPDF_StreamContentParser { static const int kParamBufSize = 16; - using OpCodes = - std::unordered_map; + using OpCodes = std::map; static OpCodes InitializeOpCodes(); void AddNameParam(const CFX_ByteStringC& str); diff --git a/core/fpdfdoc/cpdf_occontext.h b/core/fpdfdoc/cpdf_occontext.h index ecdcfae31b..753aa5c176 100644 --- a/core/fpdfdoc/cpdf_occontext.h +++ b/core/fpdfdoc/cpdf_occontext.h @@ -7,7 +7,7 @@ #ifndef CORE_FPDFDOC_CPDF_OCCONTEXT_H_ #define CORE_FPDFDOC_CPDF_OCCONTEXT_H_ -#include +#include #include "core/fxcrt/cfx_retain_ptr.h" #include "core/fxcrt/fx_string.h" @@ -40,7 +40,7 @@ class CPDF_OCContext : public CFX_Retainable { CPDF_Document* const m_pDocument; const UsageType m_eUsageType; - std::unordered_map m_OCGStates; + std::map m_OCGStates; }; #endif // CORE_FPDFDOC_CPDF_OCCONTEXT_H_ -- cgit v1.2.3