lib/expat/Parser: make the "is_final" argument optional

This commit is contained in:
Max Kellermann 2018-01-21 14:36:37 +01:00
parent dedede3caa
commit b6d858f4d6
3 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ public:
XML_SetCharacterDataHandler(parser, charhndl);
}
void Parse(const char *data, size_t length, bool is_final);
void Parse(const char *data, size_t length, bool is_final=false);
void CompleteParse() {
Parse("", 0, true);

View File

@ -32,7 +32,7 @@ ExpatParser::Parse(InputStream &is)
if (nbytes == 0)
break;
Parse(buffer, nbytes, false);
Parse(buffer, nbytes);
}
CompleteParse();

View File

@ -300,7 +300,7 @@ private:
void OnData(ConstBuffer<void> _data) final {
const auto data = ConstBuffer<char>::FromVoid(_data);
Parse(data.data, data.size, false);
Parse(data.data, data.size);
}
void OnEnd() final {