From 1bc5e494b675aeb5e73cae1d0d3cfad341a05a60 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 1 Nov 2017 18:56:07 +0000 Subject: Add CJX_ThisProxy This CL creates a CJX_ThisProxy which is created by CXFA_ThisProxy. This allows CJX_Object constructor to be protected. Change-Id: Ie6865c82c29cd1d129faa487c9021a63310c78a6 Reviewed-on: https://pdfium-review.googlesource.com/17314 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- fxjs/cjx_object.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fxjs/cjx_object.h') diff --git a/fxjs/cjx_object.h b/fxjs/cjx_object.h index 9e957d88ba..7cb91b9d27 100644 --- a/fxjs/cjx_object.h +++ b/fxjs/cjx_object.h @@ -16,7 +16,6 @@ class CXFA_Object; class CJX_Object { public: - explicit CJX_Object(CXFA_Object* object); virtual ~CJX_Object(); CXFA_Object* GetXFAObject() { return object_.Get(); } @@ -31,7 +30,9 @@ class CJX_Object { void ThrowIndexOutOfBoundsException() const; void ThrowParamCountMismatchException(const WideString& method) const; - // Make this protected when the cscript_* objects are converted to CJX. + protected: + explicit CJX_Object(CXFA_Object* object); + void ThrowException(const wchar_t* str, ...) const; private: -- cgit v1.2.3