From 2c0ca7ddbc38e33cc692b2be02c32419b97927e0 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Fri, 5 Jan 2018 11:06:55 -0500 Subject: Convert GetSOMExpression methods to return WideString Change-Id: I34eb40ff1c14e7b9362d4e52166243eacc6710da Reviewed-on: https://pdfium-review.googlesource.com/22270 Reviewed-by: Henrique Nakashima Commit-Queue: Ryan Harrison --- fxjs/xfa/cjx_tree.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fxjs/xfa') diff --git a/fxjs/xfa/cjx_tree.cpp b/fxjs/xfa/cjx_tree.cpp index 1a20611cad..4a7a2fcc17 100644 --- a/fxjs/xfa/cjx_tree.cpp +++ b/fxjs/xfa/cjx_tree.cpp @@ -196,8 +196,7 @@ void CJX_Tree::somExpression(CFXJSE_Value* pValue, return; } - WideString wsSOMExpression; - GetXFAObject()->GetSOMExpression(wsSOMExpression); + WideString wsSOMExpression = GetXFAObject()->GetSOMExpression(); pValue->SetString(wsSOMExpression.UTF8Encode().AsStringView()); } -- cgit v1.2.3