summaryrefslogtreecommitdiff
path: root/test/source/xmlwriter.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:26:03 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:53 +0100
commit5d353ff608760799a25aa8e6d016d8414d2f1fc3 (patch)
tree6701aebe51da4e7e61e29d340be6054942f1ff67 /test/source/xmlwriter.cxx
parent01b49802c7cda7fd4d5ba71263cef7bc95234b89 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I31e61fc91dff70f32143d84ccf308f2bbc9c740e
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)