diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-15 10:46:15 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-06-18 12:27:01 +0000 |
| commit | f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43 (patch) | |
| tree | 7c6044fd3a17a2665841959dac9b3b2110b27924 /src/io/xsltstream.cpp | |
| parent | Run clang-tidy’s modernize-use-override pass. (diff) | |
| download | inkscape-f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43.tar.gz inkscape-f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43.zip | |
Run clang-tidy’s modernize-use-nullptr pass.
This replaces all NULL or 0 with nullptr when assigned to or returned as
a pointer.
Diffstat (limited to 'src/io/xsltstream.cpp')
| -rw-r--r-- | src/io/xsltstream.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); |
