summaryrefslogtreecommitdiff
path: root/test/source/xmlwriter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/source/xmlwriter.cxx')
-rw-r--r--test/source/xmlwriter.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/source/xmlwriter.cxx b/test/source/xmlwriter.cxx
index 80f63993c145..d19284185153 100644
--- a/test/source/xmlwriter.cxx
+++ b/test/source/xmlwriter.cxx
@@ -41,7 +41,7 @@ int lclCloseCallback(void* pContext)
XmlWriter::XmlWriter(SvStream* pStream) :
mpStream(pStream),
- mpWriter(NULL)
+ mpWriter(nullptr)
{}
XmlWriter::~XmlWriter()
@@ -49,12 +49,12 @@ XmlWriter::~XmlWriter()
void XmlWriter::startDocument()
{
- if (mpWriter == NULL && mpStream != NULL)
+ if (mpWriter == nullptr && mpStream != nullptr)
{
- xmlOutputBufferPtr xmlOutBuffer = xmlOutputBufferCreateIO(lclWriteCallback, lclCloseCallback, mpStream, NULL);
+ xmlOutputBufferPtr xmlOutBuffer = xmlOutputBufferCreateIO(lclWriteCallback, lclCloseCallback, mpStream, nullptr);
mpWriter = xmlNewTextWriter(xmlOutBuffer);
xmlTextWriterSetIndent(mpWriter, 1);
- xmlTextWriterStartDocument(mpWriter, NULL, "UTF-8", NULL);
+ xmlTextWriterStartDocument(mpWriter, nullptr, "UTF-8", nullptr);
}
}
@@ -62,7 +62,7 @@ void XmlWriter::endDocument()
{
xmlTextWriterEndDocument(mpWriter);
xmlFreeTextWriter(mpWriter);
- mpWriter = NULL;
+ mpWriter = nullptr;
}
void XmlWriter::element(const OString& name)