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
/
validate_xml.cpp
diff --git
a/tests/utils/xml-utils/validate_xml.cpp
b/tests/utils/xml-utils/validate_xml.cpp
index aa2d526bd9096fccd590bb4234eb802a99bfeca9..ee1e552f85fb5b2f18cb7b5c0e7f568d4277cb64 100644
(file)
--- a/
tests/utils/xml-utils/validate_xml.cpp
+++ b/
tests/utils/xml-utils/validate_xml.cpp
@@
-88,7
+88,7
@@
static int init_validation_ctx(struct validation_ctx *ctx, char *xsd_path)
ret = -LTTNG_ERR_LOAD_INVALID_CONFIG;
goto end;
}
ret = -LTTNG_ERR_LOAD_INVALID_CONFIG;
goto end;
}
- xmlSchemaSetParserErrors(ctx->parser_ctx, xml_error_handler, xml_error_handler,
NULL
);
+ xmlSchemaSetParserErrors(ctx->parser_ctx, xml_error_handler, xml_error_handler,
nullptr
);
ctx->schema = xmlSchemaParse(ctx->parser_ctx);
if (!ctx->schema) {
ctx->schema = xmlSchemaParse(ctx->parser_ctx);
if (!ctx->schema) {
@@
-103,7
+103,7
@@
static int init_validation_ctx(struct validation_ctx *ctx, char *xsd_path)
}
xmlSchemaSetValidErrors(
}
xmlSchemaSetValidErrors(
- ctx->schema_validation_ctx, xml_error_handler, xml_error_handler,
NULL
);
+ ctx->schema_validation_ctx, xml_error_handler, xml_error_handler,
nullptr
);
ret = 0;
end:
ret = 0;
end:
@@
-116,7
+116,7
@@
end:
static int validate_xml(const char *xml_file_path, struct validation_ctx *ctx)
{
int ret;
static int validate_xml(const char *xml_file_path, struct validation_ctx *ctx)
{
int ret;
- xmlDocPtr doc =
NULL
;
+ xmlDocPtr doc =
nullptr
;
LTTNG_ASSERT(xml_file_path);
LTTNG_ASSERT(ctx);
LTTNG_ASSERT(xml_file_path);
LTTNG_ASSERT(ctx);
This page took
0.023696 seconds
and
4
git commands to generate.