summaryrefslogtreecommitdiff
path: root/fxjs/xfa
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/xfa')
-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());
}