summaryrefslogtreecommitdiff
path: root/fxjs/xfa/cjx_subform.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-01-05 15:46:40 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-05 21:06:28 +0000
commit5183e8679844eeff2c5dda2a2e02762487429a1f (patch)
tree4eb3182ea6e18f45583484d2748c6f20b94e423b /fxjs/xfa/cjx_subform.cpp
parent245f80c4ae2bde11de8fdff54e736ec4e4296e0a (diff)
downloadpdfium-5183e8679844eeff2c5dda2a2e02762487429a1f.tar.xz
Convert CXFA_Node::GetLocaleName out param to returnchromium/3315chromium/3314chromium/3313
Change-Id: Ia135db144c7037795fc1a1964b4f3eee57250caa Reviewed-on: https://pdfium-review.googlesource.com/22350 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fxjs/xfa/cjx_subform.cpp')
-rw-r--r--fxjs/xfa/cjx_subform.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/fxjs/xfa/cjx_subform.cpp b/fxjs/xfa/cjx_subform.cpp
index a38850575c..947d66db1d 100644
--- a/fxjs/xfa/cjx_subform.cpp
+++ b/fxjs/xfa/cjx_subform.cpp
@@ -86,8 +86,7 @@ void CJX_Subform::locale(CFXJSE_Value* pValue,
return;
}
- WideString wsLocaleName;
- GetXFANode()->GetLocaleName(wsLocaleName);
+ WideString wsLocaleName = GetXFANode()->GetLocaleName().value_or(L"");
pValue->SetString(wsLocaleName.UTF8Encode().AsStringView());
}