From 998fee395fc8a543968c7db3db9e3cf81dee57fc Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 5 Feb 2018 21:43:19 +0000 Subject: Remove the CJS_EmbedObj template param from JSConstructor. Each of the CJS_Objects can create their CJS_EmbedObj's internally and we don't need to do it though the JSConstructor. This also removes the need for the SetEmbedObj method in CJS_Object. Change-Id: Ib0535ad922b370634fd1e622a04860a96c4f2825 Reviewed-on: https://pdfium-review.googlesource.com/25370 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- fxjs/cjs_color.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fxjs/cjs_color.h') diff --git a/fxjs/cjs_color.h b/fxjs/cjs_color.h index 5f7c1e5e30..fab035db21 100644 --- a/fxjs/cjs_color.h +++ b/fxjs/cjs_color.h @@ -87,8 +87,8 @@ class CJS_Color : public CJS_Object { public: static void DefineJSObjects(CFXJS_Engine* pEngine); - explicit CJS_Color(v8::Local pObject) : CJS_Object(pObject) {} - ~CJS_Color() override {} + explicit CJS_Color(v8::Local pObject); + ~CJS_Color() override = default; JS_STATIC_PROP(black, black, color); JS_STATIC_PROP(blue, blue, color); -- cgit v1.2.3