summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtengine.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-06-09 11:09:22 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-09 11:09:22 -0700
commite64c3c60bdc1ca2e937e4317a9238ab4c210dfe5 (patch)
tree5507e29a647c0a7a8d87fc01fa64773244f2d3b0 /xfa/fde/cfde_txtedtengine.cpp
parent2334e9e583799a8cb2dfefb3c7e15c5a7da8ead0 (diff)
downloadpdfium-e64c3c60bdc1ca2e937e4317a9238ab4c210dfe5.tar.xz
Remove C-style casts in xfa/fde.
Review-Url: https://codereview.chromium.org/2040323004
Diffstat (limited to 'xfa/fde/cfde_txtedtengine.cpp')
-rw-r--r--xfa/fde/cfde_txtedtengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fde/cfde_txtedtengine.cpp b/xfa/fde/cfde_txtedtengine.cpp
index 4a9aaa6eff..8980488abc 100644
--- a/xfa/fde/cfde_txtedtengine.cpp
+++ b/xfa/fde/cfde_txtedtengine.cpp
@@ -80,7 +80,7 @@ IFDE_TxtEdtPage* CFDE_TxtEdtEngine::GetPage(int32_t nIndex) {
if (m_PagePtrArray.GetSize() <= nIndex) {
return NULL;
}
- return (IFDE_TxtEdtPage*)m_PagePtrArray[nIndex];
+ return m_PagePtrArray[nIndex];
}
void CFDE_TxtEdtEngine::SetTextByStream(IFX_Stream* pStream) {
@@ -734,7 +734,7 @@ IFX_CharIter* CFDE_TxtEdtEngine::CreateCharIter() {
if (!m_pTxtBuf) {
return NULL;
}
- return new CFDE_TxtEdtBufIter((CFDE_TxtEdtBuf*)m_pTxtBuf);
+ return new CFDE_TxtEdtBufIter(static_cast<CFDE_TxtEdtBuf*>(m_pTxtBuf));
}
int32_t CFDE_TxtEdtEngine::Line2Parag(int32_t nStartParag,