From 5d353ff608760799a25aa8e6d016d8414d2f1fc3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 10:26:03 +0100 Subject: loplugin:nullptr (automatic rewrite) Change-Id: I31e61fc91dff70f32143d84ccf308f2bbc9c740e --- test/source/xmlwriter.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/source/xmlwriter.cxx') 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) -- cgit v1.2.3