summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-04-12 13:53:18 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-12 13:53:18 +0000
commitbabeeb69b1744e414b46d77de03689682742d99d (patch)
tree27296c83ac37c8a8691ecf7c097c49fbedd9791b
parente7d5c7f48ead8f5554105da9637fd9de1c093d67 (diff)
downloadpdfium-babeeb69b1744e414b46d77de03689682742d99d.tar.xz
Fixup CFX_XMLParser::GetStatus return
This CL fixes the return type of CFX_XMLParser::GetStatus to correctly return bool instead of int32_t. Change-Id: Ifa0d24b8aad55c4cf63ddf7cfc8eee48bf8431bf Reviewed-on: https://pdfium-review.googlesource.com/30290 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
-rw-r--r--core/fxcrt/xml/cfx_xmlparser.cpp2
-rw-r--r--core/fxcrt/xml/cfx_xmlparser.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcrt/xml/cfx_xmlparser.cpp b/core/fxcrt/xml/cfx_xmlparser.cpp
index d0acbc7818..da287cf9cc 100644
--- a/core/fxcrt/xml/cfx_xmlparser.cpp
+++ b/core/fxcrt/xml/cfx_xmlparser.cpp
@@ -696,7 +696,7 @@ FX_XmlSyntaxResult CFX_XMLParser::DoSyntaxParse() {
return FX_XmlSyntaxResult::Text;
}
-int32_t CFX_XMLParser::GetStatus() const {
+bool CFX_XMLParser::GetStatus() const {
if (!m_pStream)
return false;
diff --git a/core/fxcrt/xml/cfx_xmlparser.h b/core/fxcrt/xml/cfx_xmlparser.h
index f4e3c03ee7..02a6ac441f 100644
--- a/core/fxcrt/xml/cfx_xmlparser.h
+++ b/core/fxcrt/xml/cfx_xmlparser.h
@@ -94,7 +94,7 @@ class CFX_XMLParser {
void ParseTextChar(wchar_t ch);
- int32_t GetStatus() const;
+ bool GetStatus() const;
FX_FILESIZE GetCurrentPos() const { return m_ParsedChars + m_Start; }
FX_FILESIZE GetCurrentBinaryPos() const;
int32_t GetCurrentNodeNumber() const { return m_iCurrentNodeNum; }