summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_object.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-01-05 11:06:55 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-05 16:36:57 +0000
commit2c0ca7ddbc38e33cc692b2be02c32419b97927e0 (patch)
treeff91c2bc992ec1a718e87f923e70e550f0555160 /xfa/fxfa/parser/cxfa_object.cpp
parent1f04e6111013673880767e98834fa9bb649c7aac (diff)
downloadpdfium-2c0ca7ddbc38e33cc692b2be02c32419b97927e0.tar.xz
Convert GetSOMExpression methods to return WideString
Change-Id: I34eb40ff1c14e7b9362d4e52166243eacc6710da Reviewed-on: https://pdfium-review.googlesource.com/22270 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_object.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_object.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_object.cpp b/xfa/fxfa/parser/cxfa_object.cpp
index 93d31244f6..666186c4ba 100644
--- a/xfa/fxfa/parser/cxfa_object.cpp
+++ b/xfa/fxfa/parser/cxfa_object.cpp
@@ -31,12 +31,12 @@ CXFA_Object::CXFA_Object(CXFA_Document* pDocument,
CXFA_Object::~CXFA_Object() {}
-void CXFA_Object::GetSOMExpression(WideString& wsSOMExpression) {
+WideString CXFA_Object::GetSOMExpression() {
CFXJSE_Engine* pScriptContext = m_pDocument->GetScriptContext();
if (!pScriptContext)
- return;
+ return WideString();
- pScriptContext->GetSomExpression(ToNode(this), wsSOMExpression);
+ return pScriptContext->GetSomExpression(ToNode(this));
}
CXFA_Node* CXFA_Object::AsNode() {