diff options
author | Lei Zhang <thestig@chromium.org> | 2017-09-14 18:26:26 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-09-15 02:03:25 +0000 |
commit | 69fe7110e6af83ca82d71275a70ae4983daddd6f (patch) | |
tree | 949485a0a401a14b9d90876cd5c277f4f7a911fa /core/fpdfapi | |
parent | b1f9205bb1a0671c31e44e7362784c770bf2a948 (diff) | |
download | pdfium-69fe7110e6af83ca82d71275a70ae4983daddd6f.tar.xz |
Make static const char* arrays more const.
Change-Id: I87b5e6cefe973b82b4868e56fc5285c95c53a12b
Reviewed-on: https://pdfium-review.googlesource.com/12550
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r-- | core/fpdfapi/parser/cpdf_object_unittest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fpdfapi/parser/cpdf_object_unittest.cpp b/core/fpdfapi/parser/cpdf_object_unittest.cpp index 169e0f1e56..770c718431 100644 --- a/core/fpdfapi/parser/cpdf_object_unittest.cpp +++ b/core/fpdfapi/parser/cpdf_object_unittest.cpp @@ -697,8 +697,9 @@ TEST(PDFArrayTest, AddInteger) { } TEST(PDFArrayTest, AddStringAndName) { - const char* vals[] = {"", "a", "ehjhRIOYTTFdfcdnv", "122323", - "$#%^&**", " ", "This is a test.\r\n"}; + static constexpr const char* vals[] = { + "", "a", "ehjhRIOYTTFdfcdnv", "122323", + "$#%^&**", " ", "This is a test.\r\n"}; auto string_array = pdfium::MakeUnique<CPDF_Array>(); auto name_array = pdfium::MakeUnique<CPDF_Array>(); for (size_t i = 0; i < FX_ArraySize(vals); ++i) { |