The current XMLTokenizer.cpp is hard to read as two separate implementations are in one file. Separating the Qt and libxml2 implementation should make it more readable.
Created attachment 22867 [details] Start separating XMLTokenizer Keep common code in XMLTokenizer.cpp, move Qt code to XMLTokenizerQt.cpp and the rest to XMLTokenizerLibxml2.cpp. Comments appreciated.
It might be a good idea to create the two new .cpp files by doing an "svn cp" of XMLTokenizer.cpp then removing the unneeded bits. That would help make it obvious what has happened in the SVN history.
Should also change USE_QXMLSTREAM to the USE(QXMLSTREAM) style that we use for these sorts of things elsewhere.
Oh, and the new file will need to be added to the Mac, Windows and Wx project files too.
Comment on attachment 22867 [details] Start separating XMLTokenizer r=me, if you address the comments I made above, and add a ChangeLog entry.
I think I addressed all the points and landed this patch. The size of the patch is a bit worrying but it looked good.
*** Bug 14791 has been marked as a duplicate of this bug. ***