diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-04-04 15:07:31 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-04 19:41:25 +0000 |
commit | ee62ba2df7297147cccda472f229a8c82bfc22bc (patch) | |
tree | a45f899363c19589937a0edc92d77b25cc1bbd67 /xfa/fde/xml/cfde_xmlsyntaxparser.h | |
parent | 03d58937248fa244cbf02a3d38d430a513500311 (diff) | |
download | pdfium-ee62ba2df7297147cccda472f229a8c82bfc22bc.tar.xz |
Cleanup CFX_BlockBuffer
This CL cleans up default parameters, return values and bits of code
formatting in the CFX_BlockBuffer code.
Change-Id: Ie7fd7d86046f716d0786213735ad464eefc58dbb
Reviewed-on: https://pdfium-review.googlesource.com/3670
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fde/xml/cfde_xmlsyntaxparser.h')
-rw-r--r-- | xfa/fde/xml/cfde_xmlsyntaxparser.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/xfa/fde/xml/cfde_xmlsyntaxparser.h b/xfa/fde/xml/cfde_xmlsyntaxparser.h index 9e768d01aa..4f707dc5de 100644 --- a/xfa/fde/xml/cfde_xmlsyntaxparser.h +++ b/xfa/fde/xml/cfde_xmlsyntaxparser.h @@ -53,22 +53,27 @@ class CFDE_XMLSyntaxParser { int32_t GetLastNodeNumber() const { return m_iLastNodeNum; } void GetTargetName(CFX_WideString& wsTarget) const { - m_BlockBuffer.GetTextData(wsTarget, 0, m_iTextDataLength); + wsTarget = m_BlockBuffer.GetTextData(0, m_iTextDataLength); } + void GetTagName(CFX_WideString& wsTag) const { - m_BlockBuffer.GetTextData(wsTag, 0, m_iTextDataLength); + wsTag = m_BlockBuffer.GetTextData(0, m_iTextDataLength); } + void GetAttributeName(CFX_WideString& wsAttriName) const { - m_BlockBuffer.GetTextData(wsAttriName, 0, m_iTextDataLength); + wsAttriName = m_BlockBuffer.GetTextData(0, m_iTextDataLength); } + void GetAttributeValue(CFX_WideString& wsAttriValue) const { - m_BlockBuffer.GetTextData(wsAttriValue, 0, m_iTextDataLength); + wsAttriValue = m_BlockBuffer.GetTextData(0, m_iTextDataLength); } + void GetTextData(CFX_WideString& wsText) const { - m_BlockBuffer.GetTextData(wsText, 0, m_iTextDataLength); + wsText = m_BlockBuffer.GetTextData(0, m_iTextDataLength); } + void GetTargetData(CFX_WideString& wsData) const { - m_BlockBuffer.GetTextData(wsData, 0, m_iTextDataLength); + wsData = m_BlockBuffer.GetTextData(0, m_iTextDataLength); } protected: |