From 5183e8679844eeff2c5dda2a2e02762487429a1f Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Fri, 5 Jan 2018 15:46:40 -0500 Subject: Convert CXFA_Node::GetLocaleName out param to return Change-Id: Ia135db144c7037795fc1a1964b4f3eee57250caa Reviewed-on: https://pdfium-review.googlesource.com/22350 Commit-Queue: Ryan Harrison Reviewed-by: Henrique Nakashima --- fxjs/xfa/cjx_subform.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fxjs/xfa') 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()); } -- cgit v1.2.3