| 1 |
diff --git a/core/fpdfdoc/cpdf_action.cpp b/core/fpdfdoc/cpdf_action.cpp |
| 2 |
index a5b687d76..369511362 100644 |
| 3 |
--- a/core/fpdfdoc/cpdf_action.cpp |
| 4 |
+++ b/core/fpdfdoc/cpdf_action.cpp |
| 5 |
@@ -21,7 +21,7 @@ |
| 6 |
|
| 7 |
namespace { |
| 8 |
|
| 9 |
-constexpr auto kActionTypeStrings = fxcrt::ToArray<const char*>({ |
| 10 |
+constexpr std::array<const char *, 18> kActionTypeStrings = { |
| 11 |
"GoTo", |
| 12 |
"GoToR", |
| 13 |
"GoToE", |
| 14 |
@@ -40,7 +40,7 @@ constexpr auto kActionTypeStrings = fxcrt::ToArray<const char*>({ |
| 15 |
"Rendition", |
| 16 |
"Trans", |
| 17 |
"GoTo3DView", |
| 18 |
-}); |
| 19 |
+}; |
| 20 |
|
| 21 |
} // namespace |
| 22 |
|
| 23 |
diff --git a/core/fpdfdoc/cpdf_dest.cpp b/core/fpdfdoc/cpdf_dest.cpp |
| 24 |
index 8026a75d5..abcfc863f 100644 |
| 25 |
--- a/core/fpdfdoc/cpdf_dest.cpp |
| 26 |
+++ b/core/fpdfdoc/cpdf_dest.cpp |
| 27 |
@@ -21,12 +21,12 @@ namespace { |
| 28 |
|
| 29 |
// These arrays are indexed by the PDFDEST_VIEW_* constants. |
| 30 |
|
| 31 |
-constexpr auto kZoomModes = |
| 32 |
- fxcrt::ToArray<const char*>({"Unknown", "XYZ", "Fit", "FitH", "FitV", |
| 33 |
- "FitR", "FitB", "FitBH", "FitBV"}); |
| 34 |
+constexpr class std::array<const char *, 9> kZoomModes = |
| 35 |
+ {"Unknown", "XYZ", "Fit", "FitH", "FitV", |
| 36 |
+ "FitR", "FitB", "FitBH", "FitBV"}; |
| 37 |
|
| 38 |
-constexpr auto kZoomModeMaxParamCount = |
| 39 |
- fxcrt::ToArray<const uint8_t>({0, 3, 0, 1, 1, 4, 0, 1, 1}); |
| 40 |
+constexpr std::array<const uint8_t, 9> kZoomModeMaxParamCount = |
| 41 |
+ {0, 3, 0, 1, 1, 4, 0, 1, 1}; |
| 42 |
|
| 43 |
} // namespace |
| 44 |
|
| 45 |
diff --git a/fpdfsdk/fpdf_annot.cpp b/fpdfsdk/fpdf_annot.cpp |
| 46 |
index e42e6db0c..b90551d71 100644 |
| 47 |
--- a/fpdfsdk/fpdf_annot.cpp |
| 48 |
+++ b/fpdfsdk/fpdf_annot.cpp |
| 49 |
@@ -1085,8 +1085,8 @@ FPDFAnnot_SetAP(FPDF_ANNOTATION annot, |
| 50 |
if (appearanceMode < 0 || appearanceMode >= FPDF_ANNOT_APPEARANCEMODE_COUNT) |
| 51 |
return false; |
| 52 |
|
| 53 |
- static constexpr auto kModeKeyForMode = |
| 54 |
- fxcrt::ToArray<const char*>({"N", "R", "D"}); |
| 55 |
+ static constexpr std::array<const char *, 3> kModeKeyForMode = |
| 56 |
+ {"N", "R", "D"}; |
| 57 |
static_assert(kModeKeyForMode.size() == FPDF_ANNOT_APPEARANCEMODE_COUNT, |
| 58 |
"length of kModeKeyForMode should be equal to " |
| 59 |
"FPDF_ANNOT_APPEARANCEMODE_COUNT"); |