summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_widgetdata.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-27 13:10:24 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-27 13:10:24 -0700
commite93dbd6c18b8b58e5d6b4813052fafbc323e9692 (patch)
treefb1fdada3c0b2eb1d7d00eeee19e7870340f0f17 /xfa/fxfa/parser/cxfa_widgetdata.cpp
parent5c15e67e12e245d102a2e0ef1b4ade54379f252c (diff)
downloadpdfium-e93dbd6c18b8b58e5d6b4813052fafbc323e9692.tar.xz
Fix some FX_BOOL / int noise in XFA barcodes
Review-Url: https://codereview.chromium.org/2447163007
Diffstat (limited to 'xfa/fxfa/parser/cxfa_widgetdata.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_widgetdata.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_widgetdata.cpp b/xfa/fxfa/parser/cxfa_widgetdata.cpp
index a5a7807ac8..ce07faf60f 100644
--- a/xfa/fxfa/parser/cxfa_widgetdata.cpp
+++ b/xfa/fxfa/parser/cxfa_widgetdata.cpp
@@ -1260,16 +1260,16 @@ FX_BOOL CXFA_WidgetData::GetBarcodeAttribute_CharEncoding(int32_t& val) {
return FALSE;
}
-FX_BOOL CXFA_WidgetData::GetBarcodeAttribute_Checksum(int32_t& val) {
+FX_BOOL CXFA_WidgetData::GetBarcodeAttribute_Checksum(FX_BOOL& val) {
CXFA_Node* pUIChild = GetUIChild();
XFA_ATTRIBUTEENUM eChecksum;
if (pUIChild->TryEnum(XFA_ATTRIBUTE_Checksum, eChecksum)) {
switch (eChecksum) {
case XFA_ATTRIBUTEENUM_None:
- val = 0;
+ val = false;
return TRUE;
case XFA_ATTRIBUTEENUM_Auto:
- val = 1;
+ val = true;
return TRUE;
case XFA_ATTRIBUTEENUM_1mod10:
break;