Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1859)

Unified Diff: core/fpdfdoc/ctypeset.cpp

Issue 2049003003: Add some consts and remove more casts in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | core/fpdfdoc/doc_form.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfdoc/ctypeset.cpp
diff --git a/core/fpdfdoc/ctypeset.cpp b/core/fpdfdoc/ctypeset.cpp
index 076c9018851e772edd8f268a11b42c8f8cc59999..8c85e7992291cd59ef3dc9bcf164fbfdc87e5862 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);
« no previous file with comments | « no previous file | core/fpdfdoc/doc_form.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698