summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-01 21:08:08 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-01 21:08:08 +0000
commit68bc6ad5a70fdb35ae5c088bd3ca977e15ea9573 (patch)
treebf9fe46760662f178bd97f77d5e9537947109f88 /xfa/fxfa/parser
parent14fe518ae67eac22cc169517e69092f62a195913 (diff)
downloadpdfium-68bc6ad5a70fdb35ae5c088bd3ca977e15ea9573.tar.xz
Remove default value from CJX_Node::HasAttributechromium/3256
The attribute is always false, removed and simplified the code. Change-Id: Ic20ffe8d91fc3fcd66835e1bc2b1bce3da69be16 Reviewed-on: https://pdfium-review.googlesource.com/17316 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser')
-rw-r--r--xfa/fxfa/parser/cxfa_dataexporter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_dataexporter.cpp b/xfa/fxfa/parser/cxfa_dataexporter.cpp
index aeee2c196a..70f9513e37 100644
--- a/xfa/fxfa/parser/cxfa_dataexporter.cpp
+++ b/xfa/fxfa/parser/cxfa_dataexporter.cpp
@@ -91,9 +91,8 @@ void SaveAttribute(CXFA_Node* pNode,
bool bProto,
WideString& wsOutput) {
WideString wsValue;
- if ((!bProto &&
- !pNode->JSNode()->HasAttribute((XFA_ATTRIBUTE)eName, bProto)) ||
- !pNode->JSNode()->GetAttribute((XFA_ATTRIBUTE)eName, wsValue, false)) {
+ if ((!bProto && !pNode->JSNode()->HasAttribute(eName)) ||
+ !pNode->JSNode()->GetAttribute(eName, wsValue, false)) {
return;
}
wsValue = ExportEncodeAttribute(wsValue);