Add/remove STL includes
- Add missing <array> and <vector> to various files.
- Remove <set> from cpdf_nametree.cpp since
https://pdfium-review.googlesource.com/131951 switched over to
absl::flat_hash_set.
Bug: 417350044
Change-Id: I7f92b32c36602c3690dffc8d42a9c548d464173a
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/132010
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
diff --git a/core/fpdfdoc/cpdf_nametree.cpp b/core/fpdfdoc/cpdf_nametree.cpp
index 3f81c91..47fae4b 100644
--- a/core/fpdfdoc/cpdf_nametree.cpp
+++ b/core/fpdfdoc/cpdf_nametree.cpp
@@ -6,7 +6,6 @@
#include "core/fpdfdoc/cpdf_nametree.h"
-#include <set>
#include <utility>
#include <vector>
diff --git a/core/fpdftext/cpdf_textpage.cpp b/core/fpdftext/cpdf_textpage.cpp
index 633c3ce..5db9bb2 100644
--- a/core/fpdftext/cpdf_textpage.cpp
+++ b/core/fpdftext/cpdf_textpage.cpp
@@ -10,6 +10,7 @@
#include <stdint.h>
#include <algorithm>
+#include <array>
#include <utility>
#include <vector>
diff --git a/core/fxcodec/jbig2/JBig2_Context.cpp b/core/fxcodec/jbig2/JBig2_Context.cpp
index c87ea69..7fc61ca 100644
--- a/core/fxcodec/jbig2/JBig2_Context.cpp
+++ b/core/fxcodec/jbig2/JBig2_Context.cpp
@@ -7,6 +7,7 @@
#include "core/fxcodec/jbig2/JBig2_Context.h"
#include <algorithm>
+#include <array>
#include <limits>
#include <list>
#include <utility>
diff --git a/core/fxcodec/jbig2/JBig2_HuffmanTable.cpp b/core/fxcodec/jbig2/JBig2_HuffmanTable.cpp
index cb3afbd..e4ee07e 100644
--- a/core/fxcodec/jbig2/JBig2_HuffmanTable.cpp
+++ b/core/fxcodec/jbig2/JBig2_HuffmanTable.cpp
@@ -6,6 +6,7 @@
#include "core/fxcodec/jbig2/JBig2_HuffmanTable.h"
+#include <array>
#include <iterator>
#include <limits>
diff --git a/core/fxge/cfx_renderdevice.cpp b/core/fxge/cfx_renderdevice.cpp
index 2511748..34e0e16 100644
--- a/core/fxge/cfx_renderdevice.cpp
+++ b/core/fxge/cfx_renderdevice.cpp
@@ -9,6 +9,7 @@
#include <math.h>
#include <algorithm>
+#include <array>
#include <memory>
#include <utility>
diff --git a/fxjs/cjs_document.cpp b/fxjs/cjs_document.cpp
index 3147dd5..7c7eb13 100644
--- a/fxjs/cjs_document.cpp
+++ b/fxjs/cjs_document.cpp
@@ -9,6 +9,7 @@
#include <stdint.h>
#include <utility>
+#include <vector>
#include "constants/access_permissions.h"
#include "core/fpdfapi/page/cpdf_pageimagecache.h"
diff --git a/xfa/fwl/cfwl_monthcalendar.cpp b/xfa/fwl/cfwl_monthcalendar.cpp
index a916708..52f81b8 100644
--- a/xfa/fwl/cfwl_monthcalendar.cpp
+++ b/xfa/fwl/cfwl_monthcalendar.cpp
@@ -7,6 +7,7 @@
#include "xfa/fwl/cfwl_monthcalendar.h"
#include <algorithm>
+#include <array>
#include <memory>
#include <utility>
diff --git a/xfa/fxfa/parser/cxfa_localevalue.cpp b/xfa/fxfa/parser/cxfa_localevalue.cpp
index c5f9bc2..7fd3738 100644
--- a/xfa/fxfa/parser/cxfa_localevalue.cpp
+++ b/xfa/fxfa/parser/cxfa_localevalue.cpp
@@ -6,6 +6,7 @@
#include "xfa/fxfa/parser/cxfa_localevalue.h"
+#include <array>
#include <memory>
#include <utility>
#include <vector>