Correct. How I have it setup now is BaseXmlReader has a constructor that accepts a pointer to a QXmlStreamReader. It then uses that as the reader instead of creating a new instance like it would with other constructors. It keeps track if it was given another QXmlStreamReader or it created it's own on construction, so at destruction it doesn't delete the QXmlStreamReader it was given from a parent reader.
Bookmarks