diff options
author | Lei Zhang <thestig@chromium.org> | 2015-05-15 15:19:12 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-05-15 15:19:12 -0700 |
commit | acae9257203971ee1e34d8d7573b7ba9a50041af (patch) | |
tree | ac09aa8570a3cc31769aa31451bf56dfef36d32c /core | |
parent | 61ffad8df484ab9b3f7d2f5519ec470fbc023b88 (diff) | |
download | pdfium-acae9257203971ee1e34d8d7573b7ba9a50041af.tar.xz |
Initialize members of CPDF_TextPageFind class.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1137933004
Diffstat (limited to 'core')
-rw-r--r-- | core/src/fpdftext/fpdf_text_int.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/core/src/fpdftext/fpdf_text_int.cpp b/core/src/fpdftext/fpdf_text_int.cpp index 4570da2247..882b22ceec 100644 --- a/core/src/fpdftext/fpdf_text_int.cpp +++ b/core/src/fpdftext/fpdf_text_int.cpp @@ -2233,13 +2233,16 @@ FX_BOOL CPDF_TextPage::IsLetter(FX_WCHAR unicode) return TRUE; } CPDF_TextPageFind::CPDF_TextPageFind(const IPDF_TextPage* pTextPage) - : m_pTextPage(NULL), + : m_pTextPage(pTextPage), + m_flags(0), + m_findNextStart(-1), + m_findPreStart(-1), + m_bMatchCase(FALSE), + m_bMatchWholeWord(FALSE), + m_resStart(0), + m_resEnd(-1), m_IsFind(FALSE) { - if (!pTextPage) { - return; - } - m_pTextPage = pTextPage; m_strText = m_pTextPage->GetPageText(); int nCount = pTextPage->CountChars(); if(nCount) { @@ -2273,8 +2276,6 @@ CPDF_TextPageFind::CPDF_TextPageFind(const IPDF_TextPage* pTextPage) if(indexSize % 2) { m_CharIndex.RemoveAt(indexSize - 1); } - m_resStart = 0; - m_resEnd = -1; } int CPDF_TextPageFind::GetCharIndex(int index) const { |