summaryrefslogtreecommitdiff
path: root/xfa/fxfa
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-17 21:35:46 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-17 21:35:46 +0000
commitc5017d722a4f66a6410298001e08ded30e8a1c0b (patch)
treeda7906bd6de7f73f31b49f2a97dcbef100b12ba1 /xfa/fxfa
parent9d5909e2cb3796fc9224e1762eb85318f4a31b7a (diff)
downloadpdfium-c5017d722a4f66a6410298001e08ded30e8a1c0b.tar.xz
Remove redundant GetNode
The WidgetAcc of a node will return the node from GetNode. So, calling GetNode()->GetWidgetAcc()->GetNode() will return the same thing as GetNode(). Change-Id: I82bffb191fd539a6f9b1e4a72e8ffcba1bdc1cc9 Reviewed-on: https://pdfium-review.googlesource.com/23132 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa')
-rw-r--r--xfa/fxfa/cxfa_ffbarcode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_ffbarcode.cpp b/xfa/fxfa/cxfa_ffbarcode.cpp
index 005fe402fb..3ed57b9c28 100644
--- a/xfa/fxfa/cxfa_ffbarcode.cpp
+++ b/xfa/fxfa/cxfa_ffbarcode.cpp
@@ -158,7 +158,7 @@ void CXFA_FFBarcode::RenderWidget(CXFA_Graphics* pGS,
void CXFA_FFBarcode::UpdateWidgetProperty() {
CXFA_FFTextEdit::UpdateWidgetProperty();
- auto* node = GetNode()->GetWidgetAcc()->GetNode();
+ auto* node = GetNode();
const BarCodeInfo* info = GetBarcodeTypeByName(node->GetBarcodeType());
if (!info)
return;