Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
d->nextReturnedEndOfData = false;
fetchData();
if (d->pos >= d->length) {
d->nextReturnedEndOfData = false;
fetchData();
if (d->pos >= d->length) {
+ return QXmlInputSource::EndOfDocument;
}
return next();
}
d->nextReturnedEndOfData = true;
}
return next();
}
d->nextReturnedEndOfData = true;
+ return QXmlInputSource::EndOfData;
}
// QXmlInputSource has no way to signal encoding errors. The best we can do
// is return EndOfDocument. We do *not* return EndOfData, because the reader
// will then just call this function again to get the next char.
QChar c = d->unicode[d->pos++];
}
// QXmlInputSource has no way to signal encoding errors. The best we can do
// is return EndOfDocument. We do *not* return EndOfData, because the reader
// will then just call this function again to get the next char.
QChar c = d->unicode[d->pos++];
- if (c.unicode() == EndOfData)
- c = EndOfDocument;
+ if (c.unicode() == QXmlInputSource::EndOfData) {
+ return QXmlInputSource::EndOfDocument;
+ }