diff options
Diffstat (limited to 'xfa/fxfa/parser/cxfa_validate.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_validate.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_validate.cpp b/xfa/fxfa/parser/cxfa_validate.cpp index 57cf5d4ecf..49f7f1aeff 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_picture.h" #include "xfa/fxfa/parser/cxfa_script.h" namespace { @@ -141,10 +142,10 @@ void CXFA_Validate::SetMessageText(const WideString& wsMessageType, } WideString CXFA_Validate::GetPicture() { - CXFA_Node* pNode = GetChild(0, XFA_Element::Picture, false); + CXFA_Picture* pNode = GetChild<CXFA_Picture>(0, XFA_Element::Picture, false); return pNode ? pNode->JSObject()->GetContent(false) : L""; } CXFA_Script* CXFA_Validate::GetScript() { - return static_cast<CXFA_Script*>(GetChild(0, XFA_Element::Script, false)); + return GetChild<CXFA_Script>(0, XFA_Element::Script, false); } |