diff options
author | Nicolas Pena <npm@chromium.org> | 2017-04-06 12:28:47 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-06 16:43:24 +0000 |
commit | ad22ac47b9e215df35ecf5e3071124a4ab821181 (patch) | |
tree | bb5b0cda198d9473520cf4fcc66812693b7078c3 /xfa/fde/xml/cfde_xmlsyntaxparser.h | |
parent | bf58fbb14a8b235fb864fbc45c353174446da4ca (diff) | |
download | pdfium-ad22ac47b9e215df35ecf5e3071124a4ab821181.tar.xz |
Change the CFDE_XMLSyntaxParser start and end types
This CL changes m_pStart and m_pEnd to FX_FILESIZE. This is the appropriate
type because the values are used as such by the CFDE_XMLParser.
Change-Id: I6988c5e520f52c39053d682d9e2ce713883c8b54
Reviewed-on: https://pdfium-review.googlesource.com/3850
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/xml/cfde_xmlsyntaxparser.h')
-rw-r--r-- | xfa/fde/xml/cfde_xmlsyntaxparser.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fde/xml/cfde_xmlsyntaxparser.h b/xfa/fde/xml/cfde_xmlsyntaxparser.h index 9e1558ea73..6fa310476e 100644 --- a/xfa/fde/xml/cfde_xmlsyntaxparser.h +++ b/xfa/fde/xml/cfde_xmlsyntaxparser.h @@ -42,7 +42,7 @@ class CFDE_XMLSyntaxParser { FDE_XmlSyntaxResult DoSyntaxParse(); int32_t GetStatus() const; - int32_t GetCurrentPos() const { return m_iParsedChars + m_pStart; } + FX_FILESIZE GetCurrentPos() const { return m_ParsedChars + m_Start; } FX_FILESIZE GetCurrentBinaryPos() const; int32_t GetCurrentNodeNumber() const { return m_iCurrentNodeNum; } int32_t GetLastNodeNumber() const { return m_iLastNodeNum; } @@ -102,13 +102,13 @@ class CFDE_XMLSyntaxParser { int32_t m_iCurrentPos; int32_t m_iCurrentNodeNum; int32_t m_iLastNodeNum; - int32_t m_iParsedChars; int32_t m_iParsedBytes; + FX_FILESIZE m_ParsedChars; std::vector<wchar_t> m_Buffer; int32_t m_iBufferChars; bool m_bEOS; - int32_t m_pStart; // Start position in m_Buffer - int32_t m_pEnd; // End position in m_Buffer + FX_FILESIZE m_Start; // Start position in m_Buffer + FX_FILESIZE m_End; // End position in m_Buffer FDE_XMLNODE m_CurNode; std::stack<FDE_XMLNODE> m_XMLNodeStack; CFX_BlockBuffer m_BlockBuffer; |