summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_checkbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_checkbutton.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_checkbutton.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/xfa/fxfa/parser/cxfa_checkbutton.cpp b/xfa/fxfa/parser/cxfa_checkbutton.cpp
index 6b5fa8fada..a77a0839f7 100644
--- a/xfa/fxfa/parser/cxfa_checkbutton.cpp
+++ b/xfa/fxfa/parser/cxfa_checkbutton.cpp
@@ -11,11 +11,12 @@
namespace {
-const CXFA_Node::PropertyData kPropertyData[] = {{XFA_Element::Margin, 1, 0},
- {XFA_Element::Border, 1, 0},
- {XFA_Element::Extras, 1, 0},
- {XFA_Element::Unknown, 0, 0}};
-const CXFA_Node::AttributeData kAttributeData[] = {
+const CXFA_Node::PropertyData kCheckButtonPropertyData[] = {
+ {XFA_Element::Margin, 1, 0},
+ {XFA_Element::Border, 1, 0},
+ {XFA_Element::Extras, 1, 0},
+ {XFA_Element::Unknown, 0, 0}};
+const CXFA_Node::AttributeData kCheckButtonAttributeData[] = {
{XFA_Attribute::Id, XFA_AttributeType::CData, nullptr},
{XFA_Attribute::Use, XFA_AttributeType::CData, nullptr},
{XFA_Attribute::AllowNeutral, XFA_AttributeType::Boolean, (void*)0},
@@ -27,7 +28,7 @@ const CXFA_Node::AttributeData kAttributeData[] = {
{XFA_Attribute::Usehref, XFA_AttributeType::CData, nullptr},
{XFA_Attribute::Unknown, XFA_AttributeType::Integer, nullptr}};
-constexpr wchar_t kName[] = L"checkButton";
+constexpr wchar_t kCheckButtonName[] = L"checkButton";
} // namespace
@@ -37,9 +38,9 @@ CXFA_CheckButton::CXFA_CheckButton(CXFA_Document* doc, XFA_PacketType packet)
(XFA_XDPPACKET_Template | XFA_XDPPACKET_Form),
XFA_ObjectType::Node,
XFA_Element::CheckButton,
- kPropertyData,
- kAttributeData,
- kName,
+ kCheckButtonPropertyData,
+ kCheckButtonAttributeData,
+ kCheckButtonName,
pdfium::MakeUnique<CJX_CheckButton>(this)) {}
CXFA_CheckButton::~CXFA_CheckButton() {}