summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_validate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_validate.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_validate.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_validate.cpp b/xfa/fxfa/parser/cxfa_validate.cpp
index 49f7f1aeff..665c606632 100644
--- a/xfa/fxfa/parser/cxfa_validate.cpp
+++ b/xfa/fxfa/parser/cxfa_validate.cpp
@@ -8,6 +8,7 @@
#include "fxjs/xfa/cjx_validate.h"
#include "third_party/base/ptr_util.h"
+#include "xfa/fxfa/parser/cxfa_message.h"
#include "xfa/fxfa/parser/cxfa_picture.h"
#include "xfa/fxfa/parser/cxfa_script.h"
@@ -73,7 +74,8 @@ XFA_AttributeEnum CXFA_Validate::GetScriptTest() {
}
WideString CXFA_Validate::GetMessageText(const WideString& wsMessageType) {
- CXFA_Node* pNode = JSObject()->GetProperty(0, XFA_Element::Message, false);
+ CXFA_Message* pNode =
+ JSObject()->GetProperty<CXFA_Message>(0, XFA_Element::Message, false);
if (!pNode)
return L"";
@@ -116,7 +118,8 @@ void CXFA_Validate::SetScriptMessageText(const WideString& wsMessage) {
void CXFA_Validate::SetMessageText(const WideString& wsMessageType,
const WideString& wsMessage) {
- CXFA_Node* pNode = JSObject()->GetProperty(0, XFA_Element::Message, true);
+ CXFA_Message* pNode =
+ JSObject()->GetProperty<CXFA_Message>(0, XFA_Element::Message, true);
if (!pNode)
return;