diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:16:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:27 +0100 |
commit | 2df257e95e655de7b0f888b033a56cd800d3002e (patch) | |
tree | 289bad43a8dbeb85e0af6447eadf87c79f13fdb6 /helpcompiler/source/HelpCompiler.cxx | |
parent | 06c5c630201152964c19c47262a5a54fcb6cf6c2 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I6e34abccb0bda1c76e30ab973b8fd827d6c99c72
Diffstat (limited to 'helpcompiler/source/HelpCompiler.cxx')
-rw-r--r-- | helpcompiler/source/HelpCompiler.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/helpcompiler/source/HelpCompiler.cxx b/helpcompiler/source/HelpCompiler.cxx index c4a3eaa34282..af8154749795 100644 --- a/helpcompiler/source/HelpCompiler.cxx +++ b/helpcompiler/source/HelpCompiler.cxx @@ -70,9 +70,9 @@ void HelpCompiler::tagBasicCodeExamples( xmlDocPtr doc ) xmlDocPtr HelpCompiler::compactXhpForJar( xmlDocPtr doc ) { - static xsltStylesheetPtr compact = NULL; + static xsltStylesheetPtr compact = nullptr; static const char *params[2 + 1]; - params[0] = NULL; + params[0] = nullptr; xmlDocPtr compacted; if (!compact) @@ -119,7 +119,7 @@ void HelpCompiler::saveXhpForJar( xmlDocPtr doc, const fs::path &filePath ) xmlDocPtr HelpCompiler::getSourceDocument(const fs::path &filePath) { - static xsltStylesheetPtr cur = NULL; + static xsltStylesheetPtr cur = nullptr; xmlDocPtr res; if( bExtensionMode ) @@ -144,7 +144,7 @@ xmlDocPtr HelpCompiler::getSourceDocument(const fs::path &filePath) int nbparams = 0; params[nbparams++] = "fsroot"; params[nbparams++] = fsroot.c_str(); - params[nbparams] = NULL; + params[nbparams] = nullptr; } xmlDocPtr doc = xmlParseFile(filePath.native_file_string().c_str()); if( !doc ) @@ -175,7 +175,7 @@ xmlNodePtr HelpCompiler::clone(xmlNodePtr node, const std::string& appl) { std::string tmp=""; xmlChar * prop = xmlGetProp(list, reinterpret_cast<xmlChar const *>("select")); - if (prop != 0) + if (prop != nullptr) { if (strcmp(reinterpret_cast<char *>(prop), "sys") == 0) { |