diff options
author | Lei Zhang <thestig@chromium.org> | 2017-06-26 13:33:47 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-06-26 20:49:42 +0000 |
commit | f76e9d33b6246358d34cb476dbf197788fe49425 (patch) | |
tree | 5207216d0850b602816b0bb0f196ecb29117ff0f /xfa/fde/css/cfde_csssyntaxparser.cpp | |
parent | bdb330ee4d4d9d6fafc6bc84d4fa28c045eda936 (diff) | |
download | pdfium-f76e9d33b6246358d34cb476dbf197788fe49425.tar.xz |
Clean up CFDE_CSSTextBuf.
Change-Id: I8230c2d5e5450ea36ff6d2a4fefc1619a13e9c44
Reviewed-on: https://pdfium-review.googlesource.com/6930
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fde/css/cfde_csssyntaxparser.cpp')
-rw-r--r-- | xfa/fde/css/cfde_csssyntaxparser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xfa/fde/css/cfde_csssyntaxparser.cpp b/xfa/fde/css/cfde_csssyntaxparser.cpp index e943f29f4d..b896eb79b8 100644 --- a/xfa/fde/css/cfde_csssyntaxparser.cpp +++ b/xfa/fde/css/cfde_csssyntaxparser.cpp @@ -41,7 +41,8 @@ bool CFDE_CSSSyntaxParser::Init(const wchar_t* pBuffer, Reset(bOnlyDeclaration); if (!m_TextData.EstimateSize(iTextDatSize)) return false; - return m_TextPlane.AttachBuffer(pBuffer, iBufferSize); + m_TextPlane.AttachBuffer(pBuffer, iBufferSize); + return true; } void CFDE_CSSSyntaxParser::Reset(bool bOnlyDeclaration) { |