diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-02-05 18:52:09 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-05 18:52:09 +0000 |
commit | 57e097750846bf3ffc3e4e2ef9e78be8a82c69de (patch) | |
tree | 080a0d644b816cc6d2cb0b00f4c9629020894316 /fxjs/cjs_color.cpp | |
parent | 13c4d1b46641fb3041800cad3032e7e60026e3f4 (diff) | |
download | pdfium-57e097750846bf3ffc3e4e2ef9e78be8a82c69de.tar.xz |
Use unique pointer in CFXJS_PerObjectData.
Also use the actual type information, not void* and remove casts.
Template function not required to wrap virtual dtors.
Change-Id: I9397cae136c3c395a368a1ef0ce8162d9b586076
Reviewed-on: https://pdfium-review.googlesource.com/25290
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_color.cpp')
-rw-r--r-- | fxjs/cjs_color.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fxjs/cjs_color.cpp b/fxjs/cjs_color.cpp index 58a98dd8ff..cfef4493b3 100644 --- a/fxjs/cjs_color.cpp +++ b/fxjs/cjs_color.cpp @@ -36,8 +36,7 @@ int CJS_Color::ObjDefnID = -1; // static void CJS_Color::DefineJSObjects(CFXJS_Engine* pEngine) { ObjDefnID = pEngine->DefineObj("color", FXJSOBJTYPE_STATIC, - JSConstructor<CJS_Color, color>, - JSDestructor<CJS_Color>); + JSConstructor<CJS_Color, color>, JSDestructor); DefineProps(pEngine, ObjDefnID, PropertySpecs, FX_ArraySize(PropertySpecs)); DefineMethods(pEngine, ObjDefnID, MethodSpecs, FX_ArraySize(MethodSpecs)); } |