diff options
author | dsinclair <dsinclair@chromium.org> | 2016-04-05 12:01:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-05 12:01:42 -0700 |
commit | c7a7349cf316af37d4ad4b71c5742159deccbf33 (patch) | |
tree | 5006913b93a6d498e3df158bc644400e3a1a0c7c /fpdfsdk/fxedit/fxet_module.cpp | |
parent | 179bebb9a14dfd3ba91e9e068d4d436657a7c780 (diff) | |
download | pdfium-c7a7349cf316af37d4ad4b71c5742159deccbf33.tar.xz |
Remove core/include/fpdfdoc/fpdf_vt.h
This CL removes the core/include/fpdfdoc/fpdf_vt.h file. The IPDF_VariableText
class was removed in favour of the only concrete class of CPD_VariableText.
CPVT_Provider was moved to CPDF_VariableText::Provider and
CPDF_VariableText_Iterator was moved to CPDF_VariableText::Iterator.
The IFX_Edit_FontMap interface was merged into the IPVT_FontMap interface so
there is only one.
Other classes were split out as needed in order to keep things compiling.
BUG=pdfium:468
Review URL: https://codereview.chromium.org/1860063002
Diffstat (limited to 'fpdfsdk/fxedit/fxet_module.cpp')
-rw-r--r-- | fpdfsdk/fxedit/fxet_module.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fpdfsdk/fxedit/fxet_module.cpp b/fpdfsdk/fxedit/fxet_module.cpp index 889b0f81a6..330b72bc8b 100644 --- a/fpdfsdk/fxedit/fxet_module.cpp +++ b/fpdfsdk/fxedit/fxet_module.cpp @@ -4,21 +4,17 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com +#include "core/fpdfdoc/include/cpdf_variabletext.h" #include "fpdfsdk/include/fxedit/fxet_edit.h" #include "fpdfsdk/include/fxedit/fxet_list.h" IFX_Edit* IFX_Edit::NewEdit() { - if (IPDF_VariableText* pVT = IPDF_VariableText::NewVariableText()) { - return new CFX_Edit(pVT); - } - - return NULL; + return new CFX_Edit(new CPDF_VariableText()); } void IFX_Edit::DelEdit(IFX_Edit* pEdit) { - IPDF_VariableText::DelVariableText(pEdit->GetVariableText()); - - delete (CFX_Edit*)pEdit; + delete pEdit->GetVariableText(); + delete static_cast<CFX_Edit*>(pEdit); } IFX_List* IFX_List::NewList() { |