diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-06-27 17:54:50 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-27 17:54:50 +0000 |
commit | d78a964c31f303e828453ee189d4998558bac8e1 (patch) | |
tree | fe74133529c24a276616bbb2e34a0986da1bbe4a /xfa/fxfa/cxfa_fffield.cpp | |
parent | 9e12f14814722c0c0d46d4968f636b5e1a72a1e7 (diff) | |
download | pdfium-d78a964c31f303e828453ee189d4998558bac8e1.tar.xz |
Remove CXFA_FField::UnloadWidget().
It is only called during the destructor, and does things that
the destructor would automatically do, like calling into the
superclass. So just use destructors.
Change-Id: I1196817798eeca99914b44ddee1f75781e682211
Reviewed-on: https://pdfium-review.googlesource.com/36231
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_fffield.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_fffield.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/xfa/fxfa/cxfa_fffield.cpp b/xfa/fxfa/cxfa_fffield.cpp index fe53da1a46..6f7aab899f 100644 --- a/xfa/fxfa/cxfa_fffield.cpp +++ b/xfa/fxfa/cxfa_fffield.cpp @@ -41,9 +41,7 @@ CXFA_FFField* ToField(CXFA_LayoutItem* widget) { CXFA_FFField::CXFA_FFField(CXFA_Node* pNode) : CXFA_FFWidget(pNode) {} -CXFA_FFField::~CXFA_FFField() { - CXFA_FFField::UnloadWidget(); -} +CXFA_FFField::~CXFA_FFField() = default; CFX_RectF CXFA_FFField::GetBBox(uint32_t dwStatus, bool bDrawFocus) { if (!bDrawFocus) @@ -133,10 +131,6 @@ bool CXFA_FFField::LoadWidget() { return true; } -void CXFA_FFField::UnloadWidget() { - m_pNormalWidget.reset(); -} - void CXFA_FFField::SetEditScrollOffset() { XFA_FFWidgetType eType = m_pNode->GetFFWidgetType(); if (eType != XFA_FFWidgetType::kTextEdit && |