diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-07-23 18:03:44 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-23 18:03:44 +0000 |
commit | 721f5fa5061f2dec8282b7bde48c9d4721208b7a (patch) | |
tree | ef73827b16830ae0fe3f535783aa34b194f8257a /fxjs/fxjse.cpp | |
parent | 3ba611a551efb23518ac16f8bb23ab5ac4ca2c59 (diff) | |
download | pdfium-721f5fa5061f2dec8282b7bde48c9d4721208b7a.tar.xz |
Replace CFXJSE_HostObject::type_ with polymorphic conversion methods
More foolproof technique, and saves one word in every instance at a
cost of two pointers in every subclass vtable.
Change-Id: Ied4f91d4d203b5e6d83abe751159eb7e55489bb5
Reviewed-on: https://pdfium-review.googlesource.com/38530
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxjs/fxjse.cpp')
-rw-r--r-- | fxjs/fxjse.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fxjs/fxjse.cpp b/fxjs/fxjse.cpp new file mode 100644 index 0000000000..68adaa5dd3 --- /dev/null +++ b/fxjs/fxjse.cpp @@ -0,0 +1,19 @@ +// Copyright 2018 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#include "fxjs/fxjse.h" + +CFXJSE_HostObject::CFXJSE_HostObject() = default; + +CFXJSE_HostObject::~CFXJSE_HostObject() = default; + +CFXJSE_FormCalcContext* CFXJSE_HostObject::AsFormCalcContext() { + return nullptr; +} + +CXFA_Object* CFXJSE_HostObject::AsCXFAObject() { + return nullptr; +} |