lib/expat/Parser: forward Parse() arguments

This commit is contained in:
Max Kellermann 2018-01-21 14:34:53 +01:00
parent 542bbb0889
commit b14fc907f9
1 changed files with 3 additions and 6 deletions

View File

@ -104,12 +104,9 @@ public:
parser.SetCharacterDataHandler(CharacterData);
}
void Parse(const char *data, size_t length, bool is_final) {
parser.Parse(data, length, is_final);
}
void Parse(InputStream &is) {
parser.Parse(is);
template<typename... Args>
void Parse(Args&&... args) {
parser.Parse(std::forward<Args>(args)...);
}
gcc_pure