summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_streamcontentparser.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-04-26 10:55:54 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-26 20:07:23 +0000
commite47e0c96009b8633294eebbb9eb0e84caf525c57 (patch)
tree093c0edb121e54c22e40a704ce473eb48491ccfc /core/fpdfapi/page/cpdf_streamcontentparser.h
parent2e2a4fcd43677c5882dcf00cb4b99635cb2cfcd3 (diff)
downloadpdfium-e47e0c96009b8633294eebbb9eb0e84caf525c57.tar.xz
Avoid unordered_set and maps for the time being.chromium/3082
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 <dsinclair@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_streamcontentparser.h')
-rw-r--r--core/fpdfapi/page/cpdf_streamcontentparser.h5
1 files changed, 2 insertions, 3 deletions
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 <map>
#include <memory>
-#include <unordered_map>
#include <vector>
#include "core/fpdfapi/page/cpdf_contentmark.h"
@@ -73,8 +73,7 @@ class CPDF_StreamContentParser {
static const int kParamBufSize = 16;
- using OpCodes =
- std::unordered_map<uint32_t, void (CPDF_StreamContentParser::*)()>;
+ using OpCodes = std::map<uint32_t, void (CPDF_StreamContentParser::*)()>;
static OpCodes InitializeOpCodes();
void AddNameParam(const CFX_ByteStringC& str);