summaryrefslogtreecommitdiff
path: root/test/source
diff options
context:
space:
mode:
Diffstat (limited to 'test/source')
-rw-r--r--test/source/mtfxmldump.cxx10
-rw-r--r--test/source/xmlwriter.cxx3
2 files changed, 5 insertions, 8 deletions
diff --git a/test/source/mtfxmldump.cxx b/test/source/mtfxmldump.cxx
index ef127e355867..31f9aba37978 100644
--- a/test/source/mtfxmldump.cxx
+++ b/test/source/mtfxmldump.cxx
@@ -168,7 +168,8 @@ void MetafileXmlDump::dump(GDIMetaFile& rMetaFile)
xmlTextWriterSetIndent( xmlWriter, 1 );
XmlWriter aWriter(xmlWriter);
- aWriter.startDocument("metafile");
+ aWriter.startDocument();
+ aWriter.startElement("metafile");
for(MetaAction* pAction = rMetaFile.FirstAction(); pAction != NULL; pAction = rMetaFile.NextAction())
{
@@ -391,12 +392,9 @@ void MetafileXmlDump::dump(GDIMetaFile& rMetaFile)
}
}
- aWriter.endDocument();
- for(size_t i=0; i<usedIds.size(); ++i)
- if(usedIds[i])
- printf("%ld ", i);
- printf("\n");
+ aWriter.endElement();
+ aWriter.endDocument();
mrStream.WriteOString(aString.makeStringAndClear());
}
diff --git a/test/source/xmlwriter.cxx b/test/source/xmlwriter.cxx
index 3485f1030537..b1166be647f0 100644
--- a/test/source/xmlwriter.cxx
+++ b/test/source/xmlwriter.cxx
@@ -27,10 +27,9 @@ XmlWriter::XmlWriter(xmlTextWriterPtr pWriter) :
XmlWriter::~XmlWriter()
{}
-void XmlWriter::startDocument(const OString& name)
+void XmlWriter::startDocument()
{
xmlTextWriterStartDocument(mpWriter, NULL, NULL, NULL);
- startElement(name);
}
void XmlWriter::endDocument()