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

Unified Diff: core/src/fpdftext/fpdf_text_int.cpp

Issue 1632143002: War on #defines, part 1. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Add const. Created 4 years, 11 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 | « core/src/fpdftext/fpdf_text.cpp ('k') | core/src/fpdftext/fpdf_text_search.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fpdftext/fpdf_text_int.cpp
diff --git a/core/src/fpdftext/fpdf_text_int.cpp b/core/src/fpdftext/fpdf_text_int.cpp
index ae26cbd252787e521556c7143c5013485790109b..55f736ee9c48499eef30f098feec585bdfe5a806 100644
--- a/core/src/fpdftext/fpdf_text_int.cpp
+++ b/core/src/fpdftext/fpdf_text_int.cpp
@@ -771,7 +771,7 @@ int32_t CPDF_TextPage::FindTextlineFlowDirection() {
if (NULL == pPageObj) {
continue;
}
- if (PDFPAGE_TEXT != pPageObj->m_Type) {
+ if (CPDF_PageObject::TEXT != pPageObj->m_Type) {
continue;
}
int32_t minH =
@@ -860,11 +860,11 @@ void CPDF_TextPage::ProcessObject() {
while (pos) {
pPageObj = m_pPage->GetNextObject(pos);
if (pPageObj) {
- if (pPageObj->m_Type == PDFPAGE_TEXT) {
+ if (pPageObj->m_Type == CPDF_PageObject::TEXT) {
CFX_Matrix matrix;
ProcessTextObject((CPDF_TextObject*)pPageObj, matrix, pos);
nCount++;
- } else if (pPageObj->m_Type == PDFPAGE_FORM) {
+ } else if (pPageObj->m_Type == CPDF_PageObject::FORM) {
CFX_Matrix formMatrix(1, 0, 0, 1, 0, 0);
ProcessFormObject((CPDF_FormObject*)pPageObj, formMatrix);
}
@@ -895,9 +895,9 @@ void CPDF_TextPage::ProcessFormObject(CPDF_FormObject* pFormObj,
while (pos) {
pPageObj = pFormObj->m_pForm->GetNextObject(pos);
if (pPageObj) {
- if (pPageObj->m_Type == PDFPAGE_TEXT) {
+ if (pPageObj->m_Type == CPDF_PageObject::TEXT) {
ProcessTextObject((CPDF_TextObject*)pPageObj, curFormMatrix, pos);
- } else if (pPageObj->m_Type == PDFPAGE_FORM) {
+ } else if (pPageObj->m_Type == CPDF_PageObject::FORM) {
ProcessFormObject((CPDF_FormObject*)pPageObj, curFormMatrix);
}
}
@@ -1967,7 +1967,7 @@ FX_BOOL CPDF_TextPage::IsSameAsPreTextObject(CPDF_TextObject* pTextObj,
if (pObj == pTextObj) {
continue;
}
- if (pObj->m_Type != PDFPAGE_TEXT) {
+ if (pObj->m_Type != CPDF_PageObject::TEXT) {
continue;
}
if (IsSameTextObject((CPDF_TextObject*)pObj, pTextObj)) {
« no previous file with comments | « core/src/fpdftext/fpdf_text.cpp ('k') | core/src/fpdftext/fpdf_text_search.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698