diff options
author | tsepez <tsepez@chromium.org> | 2016-06-08 13:30:06 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-08 13:30:06 -0700 |
commit | c1835615f386d8e6e30df89b6517ebf605335a0e (patch) | |
tree | a84b7ecfd51799e8e7ef7e481c1ee68bcb651a25 /core/fpdfdoc/ctypeset.cpp | |
parent | bc58de0409636f64200b14097e4c781ace12422d (diff) | |
download | pdfium-c1835615f386d8e6e30df89b6517ebf605335a0e.tar.xz |
Add some consts and remove more casts in core/
Review-Url: https://codereview.chromium.org/2049003003
Diffstat (limited to 'core/fpdfdoc/ctypeset.cpp')
-rw-r--r-- | core/fpdfdoc/ctypeset.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/fpdfdoc/ctypeset.cpp b/core/fpdfdoc/ctypeset.cpp index 076c901885..8c85e79922 100644 --- a/core/fpdfdoc/ctypeset.cpp +++ b/core/fpdfdoc/ctypeset.cpp @@ -214,13 +214,11 @@ CPVT_FloatRect CTypeset::CharArray() { break; } fNextWidth = 0; - if (CPVT_WordInfo* pNextWord = - (CPVT_WordInfo*)m_pSection->m_WordArray.GetAt(w + 1)) { + if (CPVT_WordInfo* pNextWord = m_pSection->m_WordArray.GetAt(w + 1)) { pNextWord->fWordTail = 0; fNextWidth = m_pVT->GetWordWidth(*pNextWord); } - if (CPVT_WordInfo* pWord = - (CPVT_WordInfo*)m_pSection->m_WordArray.GetAt(w)) { + if (CPVT_WordInfo* pWord = m_pSection->m_WordArray.GetAt(w)) { pWord->fWordTail = 0; FX_FLOAT fWordWidth = m_pVT->GetWordWidth(*pWord); FX_FLOAT fWordAscent = m_pVT->GetWordAscent(*pWord); |