Originally Posted by
Shawn
Do you think the example is clear enough to confirm that it is a bug?
Well... you could minimize it a bit further.
I've just made a simple test and changed main.cpp like this:
{ // <--- added {
Parser1 handler1;
reader.setContentHandler(&handler1);
reader.setErrorHandler(&handler1);
reader.parse(inputSource);
} // <--- added }
{ // <--- added {
Parser1 handler1;
reader.setContentHandler(&handler1);
reader.setErrorHandler(&handler1);
reader.parse(inputSource);
} // <--- added }
To copy to clipboard, switch view to plain text mode
and the problem still occurs.
reset() looks like this:
{
d->nextReturnedEndOfData = false;
d->pos = 0;
}
void QXmlInputSource::reset()
{
d->nextReturnedEndOfData = false;
d->pos = 0;
}
To copy to clipboard, switch view to plain text mode
so obviosly it doesn't touch the file.
Bookmarks