From 0bc02c152bd0c178a5946196e2054a5cdc7650f4 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 26 Feb 2018 21:02:52 +0000 Subject: Add some more missing consts. Get things out of the .data section. Change-Id: I375cf00186a3d5d8d10f5d147bd4b692f5db3683 Reviewed-on: https://pdfium-review.googlesource.com/27130 Commit-Queue: Tom Sepez Reviewed-by: dsinclair --- xfa/fxfa/parser/cxfa_node_statics.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'xfa/fxfa/parser') diff --git a/xfa/fxfa/parser/cxfa_node_statics.cpp b/xfa/fxfa/parser/cxfa_node_statics.cpp index 93860c6a0a..3d64c1a66f 100644 --- a/xfa/fxfa/parser/cxfa_node_statics.cpp +++ b/xfa/fxfa/parser/cxfa_node_statics.cpp @@ -318,7 +318,9 @@ namespace { struct ElementNameInfo { uint32_t hash; XFA_Element element; -} ElementNameToEnum[] = { +}; + +const ElementNameInfo ElementNameToEnum[] = { {0x23ee3 /* ps */, XFA_Element::Ps}, {0x25363 /* to */, XFA_Element::To}, {0x2587e /* ui */, XFA_Element::Ui}, @@ -631,7 +633,9 @@ struct ElementNameInfo { struct AttributeNameInfo { uint32_t hash; XFA_Attribute attribute; -} AttributeNameInfoToEnum[] = { +}; + +const AttributeNameInfo AttributeNameInfoToEnum[] = { {0x68 /* h */, XFA_Attribute::H}, {0x77 /* w */, XFA_Attribute::W}, {0x78 /* x */, XFA_Attribute::X}, -- cgit v1.2.3