summaryrefslogtreecommitdiff
path: root/xfa/fde/fde_iterator.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-03-13 10:16:05 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-03-13 15:46:47 +0000
commit575898e6251c1dbb8de0d40a5b6ce90762aa2af2 (patch)
treec9b30307e04200c2621bfd98e4152c47653efcb6 /xfa/fde/fde_iterator.cpp
parent068d34426272bd7f02ffc12139ddd33ee2e237e6 (diff)
downloadpdfium-575898e6251c1dbb8de0d40a5b6ce90762aa2af2.tar.xz
Remove some single use interfaces
Remove interfaces which are only implemented once. Change-Id: I73ceaa7bfd7ef2a630479c7eebed5e32ecb99940 Reviewed-on: https://pdfium-review.googlesource.com/2944 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fde/fde_iterator.cpp')
-rw-r--r--xfa/fde/fde_iterator.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/xfa/fde/fde_iterator.cpp b/xfa/fde/fde_iterator.cpp
index 9c1adf6e80..8cbaa33383 100644
--- a/xfa/fde/fde_iterator.cpp
+++ b/xfa/fde/fde_iterator.cpp
@@ -6,13 +6,14 @@
#include "xfa/fde/fde_iterator.h"
+#include "xfa/fde/cfde_txtedtpage.h"
#include "xfa/fgas/crt/fgas_utils.h"
CFDE_VisualSetIterator::CFDE_VisualSetIterator() : m_dwFilter(0) {}
CFDE_VisualSetIterator::~CFDE_VisualSetIterator() {}
-bool CFDE_VisualSetIterator::AttachCanvas(IFDE_CanvasSet* pCanvas) {
+bool CFDE_VisualSetIterator::AttachCanvas(CFDE_TxtEdtPage* pCanvas) {
ASSERT(pCanvas);
m_CanvasStack = std::stack<FDE_CANVASITEM>();
@@ -50,7 +51,7 @@ void CFDE_VisualSetIterator::Reset() {
FDE_TEXTEDITPIECE* CFDE_VisualSetIterator::GetNext(
IFDE_VisualSet*& pVisualSet,
FDE_TEXTEDITPIECE** phCanvasObj,
- IFDE_CanvasSet** ppCanvasSet) {
+ CFDE_TxtEdtPage** ppCanvasSet) {
while (!m_CanvasStack.empty()) {
FDE_CANVASITEM* pCanvas = &m_CanvasStack.top();
if (!pCanvas->hPos) {
@@ -69,7 +70,7 @@ FDE_TEXTEDITPIECE* CFDE_VisualSetIterator::GetNext(
if (eType == FDE_VISUALOBJ_Canvas) {
FDE_CANVASITEM canvas;
canvas.hCanvas = pObj;
- canvas.pCanvas = static_cast<IFDE_CanvasSet*>(pVisualSet);
+ canvas.pCanvas = static_cast<CFDE_TxtEdtPage*>(pVisualSet);
canvas.hPos = canvas.pCanvas->GetFirstPosition();
m_CanvasStack.push(canvas);
break;