From 1f7db295b1deeecb562d6213b3ea17b9168405eb Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 25 Jul 2018 16:59:38 +0000 Subject: Move CXFA_ThisProxy helper to CXFA_Object. Because the other helpers are declared here. Rename VariablesThis to ThisProxy in a few places; VariablesThis is a slightly different concept (see GetVariablesThis()). Then introduce helper for CXFA_List subclass as well. Remove unused const version of some helpers. Change-Id: Ia328d8cd170a8b97015e98c1c770fa8a44810455 Reviewed-on: https://pdfium-review.googlesource.com/38670 Commit-Queue: Tom Sepez Reviewed-by: Lei Zhang --- xfa/fxfa/parser/cxfa_thisproxy.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'xfa/fxfa/parser/cxfa_thisproxy.cpp') diff --git a/xfa/fxfa/parser/cxfa_thisproxy.cpp b/xfa/fxfa/parser/cxfa_thisproxy.cpp index a3593e99b5..60a90b0931 100644 --- a/xfa/fxfa/parser/cxfa_thisproxy.cpp +++ b/xfa/fxfa/parser/cxfa_thisproxy.cpp @@ -10,15 +10,9 @@ #include "third_party/base/ptr_util.h" #include "xfa/fxfa/parser/cxfa_node.h" -// static -CXFA_ThisProxy* CXFA_ThisProxy::FromCXFAObject(CXFA_Object* that) { - return that && that->IsVariablesThis() ? static_cast(that) - : nullptr; -} - CXFA_ThisProxy::CXFA_ThisProxy(CXFA_Node* pThisNode, CXFA_Node* pScriptNode) : CXFA_Object(pThisNode->GetDocument(), - XFA_ObjectType::VariablesThis, + XFA_ObjectType::ThisProxy, XFA_Element::Unknown, WideStringView(), pdfium::MakeUnique(this)), -- cgit v1.2.3