From f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 15 Jun 2018 12:46:15 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-nullptr=20pa?= =?UTF-8?q?ss.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer. --- src/io/xsltstream.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/io/xsltstream.cpp') diff --git a/src/io/xsltstream.cpp b/src/io/xsltstream.cpp index 531647769..2e3c954da 100644 --- a/src/io/xsltstream.cpp +++ b/src/io/xsltstream.cpp @@ -31,7 +31,7 @@ namespace IO */ XsltStyleSheet::XsltStyleSheet(InputStream &xsltSource) - : stylesheet(NULL) + : stylesheet(nullptr) { if (!read(xsltSource)) { throw StreamException("read failed"); @@ -42,7 +42,7 @@ XsltStyleSheet::XsltStyleSheet(InputStream &xsltSource) * */ XsltStyleSheet::XsltStyleSheet() - : stylesheet(NULL) + : stylesheet(nullptr) { } @@ -95,7 +95,7 @@ XsltInputStream::XsltInputStream(InputStream &xmlSource, XsltStyleSheet &sheet) //Do the processing const char *params[1]; - params[0] = NULL; + params[0] = nullptr; xmlDocPtr srcDoc = xmlParseMemory(strBuf.c_str(), strBuf.size()); xmlDocPtr resDoc = xsltApplyStylesheet(stylesheet.stylesheet, srcDoc, params); xmlDocDumpFormatMemory(resDoc, &outbuf, &outsize, 1); @@ -199,7 +199,7 @@ void XsltOutputStream::flush() xmlChar *resbuf; int resSize; const char *params[1]; - params[0] = NULL; + params[0] = nullptr; xmlDocPtr srcDoc = xmlParseMemory(outbuf.raw().c_str(), outbuf.size()); xmlDocPtr resDoc = xsltApplyStylesheet(stylesheet.stylesheet, srcDoc, params); xmlDocDumpFormatMemory(resDoc, &resbuf, &resSize, 1); -- cgit v1.2.3