From f0f38e0f164b7e8b9132665407445d93f33be7ad Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 14 Jul 2006 07:55:14 +0000 Subject: Made everything have a virtual deconstructor. This is apparently very important. --- src/test/xmlwritetest/xmlwritetest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/test/xmlwritetest') diff --git a/src/test/xmlwritetest/xmlwritetest.cpp b/src/test/xmlwritetest/xmlwritetest.cpp index 2986c35..fc93510 100644 --- a/src/test/xmlwritetest/xmlwritetest.cpp +++ b/src/test/xmlwritetest/xmlwritetest.cpp @@ -1,5 +1,6 @@ #include "xmlfilewriter.h" #include "xmlstringwriter.h" +#include "xmlstringreader.h" void fillItIn( XmlWriter &w ) { @@ -28,6 +29,12 @@ void fillItIn( XmlWriter &w ) int main() { printf("Testing XmlWriter...\n"); + + XmlStringReader *xsr = new XmlStringReader(""); + + printf("%08X\n%08X\n%08X\n", xsr, (XmlReader *)xsr, (XmlDocument *)xsr ); + + delete (XmlDocument *)xsr; //XmlFileWriter wf("test.xml", "\t"); //fillItIn( wf ); -- cgit v1.2.3