diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-07-14 07:55:14 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-07-14 07:55:14 +0000 |
commit | f0f38e0f164b7e8b9132665407445d93f33be7ad (patch) | |
tree | 85bad44d80eb9df45a9f7ea960b51d1b2c003843 /src/test/xmlwritetest | |
parent | 74f94e9b20c93b93ad8b9091474f6368fc79c697 (diff) | |
download | libbu++-f0f38e0f164b7e8b9132665407445d93f33be7ad.tar.gz libbu++-f0f38e0f164b7e8b9132665407445d93f33be7ad.tar.bz2 libbu++-f0f38e0f164b7e8b9132665407445d93f33be7ad.tar.xz libbu++-f0f38e0f164b7e8b9132665407445d93f33be7ad.zip |
Made everything have a virtual deconstructor. This is apparently very
important.
Diffstat (limited to '')
-rw-r--r-- | src/test/xmlwritetest/xmlwritetest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ | |||
1 | #include "xmlfilewriter.h" | 1 | #include "xmlfilewriter.h" |
2 | #include "xmlstringwriter.h" | 2 | #include "xmlstringwriter.h" |
3 | #include "xmlstringreader.h" | ||
3 | 4 | ||
4 | void fillItIn( XmlWriter &w ) | 5 | void fillItIn( XmlWriter &w ) |
5 | { | 6 | { |
@@ -28,6 +29,12 @@ void fillItIn( XmlWriter &w ) | |||
28 | int main() | 29 | int main() |
29 | { | 30 | { |
30 | printf("Testing XmlWriter...\n"); | 31 | printf("Testing XmlWriter...\n"); |
32 | |||
33 | XmlStringReader *xsr = new XmlStringReader("<stuff/>"); | ||
34 | |||
35 | printf("%08X\n%08X\n%08X\n", xsr, (XmlReader *)xsr, (XmlDocument *)xsr ); | ||
36 | |||
37 | delete (XmlDocument *)xsr; | ||
31 | //XmlFileWriter wf("test.xml", "\t"); | 38 | //XmlFileWriter wf("test.xml", "\t"); |
32 | 39 | ||
33 | //fillItIn( wf ); | 40 | //fillItIn( wf ); |