diff options
Diffstat (limited to 'fxjs/xfa/cjx_template.cpp')
-rw-r--r-- | fxjs/xfa/cjx_template.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/fxjs/xfa/cjx_template.cpp b/fxjs/xfa/cjx_template.cpp index 8ba2bcab9e..d55fd66452 100644 --- a/fxjs/xfa/cjx_template.cpp +++ b/fxjs/xfa/cjx_template.cpp @@ -50,9 +50,7 @@ CJS_Return CJX_Template::execInitialize( const std::vector<v8::Local<v8::Value>>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); - - CXFA_WidgetData* pWidgetData = GetXFANode()->GetWidgetData(); - return CJS_Return(runtime->NewBoolean(!!pWidgetData)); + return CJS_Return(runtime->NewBoolean(!!GetWidgetData())); } CJS_Return CJX_Template::recalculate( @@ -68,9 +66,7 @@ CJS_Return CJX_Template::execCalculate( const std::vector<v8::Local<v8::Value>>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); - - CXFA_WidgetData* pWidgetData = GetXFANode()->GetWidgetData(); - return CJS_Return(runtime->NewBoolean(!!pWidgetData)); + return CJS_Return(runtime->NewBoolean(!!GetWidgetData())); } CJS_Return CJX_Template::execValidate( @@ -78,5 +74,5 @@ CJS_Return CJX_Template::execValidate( const std::vector<v8::Local<v8::Value>>& params) { if (!params.empty()) return CJS_Return(JSGetStringFromID(JSMessage::kParamError)); - return CJS_Return(runtime->NewBoolean(!!GetXFANode()->GetWidgetData())); + return CJS_Return(runtime->NewBoolean(!!GetWidgetData())); } |