projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang-tidy: add Chrome-inspired checks
[lttng-tools.git]
/
tests
/
utils
/
xml-utils
/
extract_xml.cpp
diff --git
a/tests/utils/xml-utils/extract_xml.cpp
b/tests/utils/xml-utils/extract_xml.cpp
index 80b895411ab45b864208d33f2b673a19e0fe0c7e..3995dde48a27d9d96485f148222b883f58f4ef10 100644
(file)
--- a/
tests/utils/xml-utils/extract_xml.cpp
+++ b/
tests/utils/xml-utils/extract_xml.cpp
@@
-56,7
+56,7
@@
static int print_xpath_nodes(xmlDocPtr doc, xmlNodeSetPtr nodes, FILE *output)
int i;
xmlNodePtr cur;
int i;
xmlNodePtr cur;
- xmlChar *node_child_value_string =
NULL
;
+ xmlChar *node_child_value_string =
nullptr
;
LTTNG_ASSERT(output);
size = (nodes) ? nodes->nodeNr : 0;
LTTNG_ASSERT(output);
size = (nodes) ? nodes->nodeNr : 0;
@@
-135,7
+135,7
@@
static int register_lttng_namespace(xmlXPathContextPtr xpathCtx)
{
int ret;
xmlChar *prefix;
{
int ret;
xmlChar *prefix;
- xmlChar *ns =
NULL
;
+ xmlChar *ns =
nullptr
;
prefix = xmlCharStrdup("lttng");
if (!prefix) {
prefix = xmlCharStrdup("lttng");
if (!prefix) {
@@
-169,9
+169,9
@@
end:
static int extract_xpath(const char *xml_path, const xmlChar *xpath)
{
int ret;
static int extract_xpath(const char *xml_path, const xmlChar *xpath)
{
int ret;
- xmlDocPtr doc =
NULL
;
- xmlXPathContextPtr xpathCtx =
NULL
;
- xmlXPathObjectPtr xpathObj =
NULL
;
+ xmlDocPtr doc =
nullptr
;
+ xmlXPathContextPtr xpathCtx =
nullptr
;
+ xmlXPathObjectPtr xpathObj =
nullptr
;
LTTNG_ASSERT(xml_path);
LTTNG_ASSERT(xpath);
LTTNG_ASSERT(xml_path);
LTTNG_ASSERT(xpath);
This page took
0.023739 seconds
and
4
git commands to generate.