summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_widgetdata.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-21 16:44:21 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-21 16:44:21 +0000
commit72d718ffb0bb5320c94ca387cb4938d946b076fc (patch)
tree26202761b247a8ac7644b6d70bfd4764986ff0ed /xfa/fxfa/parser/cxfa_widgetdata.cpp
parent000b95b3c9dd7c7fbfbd6359404a09dfdc2d5226 (diff)
downloadpdfium-72d718ffb0bb5320c94ca387cb4938d946b076fc.tar.xz
Cleanup CXFA_EventData methods
This CL changes the GetRef method to return a WideString instead of taking an out param and removes the unused GetSignDataTarget method. Change-Id: If50c4243fa136000fda8e4411ada4cd9cd8b20d5 Reviewed-on: https://pdfium-review.googlesource.com/18911 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_widgetdata.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_widgetdata.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_widgetdata.cpp b/xfa/fxfa/parser/cxfa_widgetdata.cpp
index d0efce71a0..4688aee390 100644
--- a/xfa/fxfa/parser/cxfa_widgetdata.cpp
+++ b/xfa/fxfa/parser/cxfa_widgetdata.cpp
@@ -283,8 +283,7 @@ std::vector<CXFA_Node*> CXFA_WidgetData::GetEventByActivity(int32_t iActivity,
CXFA_EventData eventData(pNode);
if (eventData.GetActivity() == iActivity) {
if (iActivity == XFA_ATTRIBUTEENUM_Ready) {
- WideString wsRef;
- eventData.GetRef(wsRef);
+ WideString wsRef = eventData.GetRef();
if (bIsFormReady) {
if (wsRef == WideStringView(L"$form"))
events.push_back(pNode);