diff options
Diffstat (limited to 'xfa/fxfa/parser/cxfa_calculatedata.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_calculatedata.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/cxfa_calculatedata.cpp b/xfa/fxfa/parser/cxfa_calculatedata.cpp index b468be77db..fb101d9244 100644 --- a/xfa/fxfa/parser/cxfa_calculatedata.cpp +++ b/xfa/fxfa/parser/cxfa_calculatedata.cpp @@ -22,12 +22,13 @@ CXFA_ScriptData CXFA_CalculateData::GetScriptData() { return CXFA_ScriptData(m_pNode->GetChild(0, XFA_Element::Script, false)); } -void CXFA_CalculateData::GetMessageText(WideString& wsMessage) { +WideString CXFA_CalculateData::GetMessageText() { CXFA_Node* pNode = m_pNode->GetChild(0, XFA_Element::Message, false); if (!pNode) - return; + return L""; CXFA_TextData textData(pNode->GetChild(0, XFA_Element::Text, false)); - if (textData) - textData.GetContent(wsMessage); + if (!textData) + return L""; + return textData.GetContent(); } |