X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Fxml-utils%2Fvalidate_xml.cpp;fp=tests%2Futils%2Fxml-utils%2Fvalidate_xml.cpp;h=ee1e552f85fb5b2f18cb7b5c0e7f568d4277cb64;hb=cd9adb8b829564212158943a0d279bb35322ab30;hp=aa2d526bd9096fccd590bb4234eb802a99bfeca9;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1;p=lttng-tools.git diff --git a/tests/utils/xml-utils/validate_xml.cpp b/tests/utils/xml-utils/validate_xml.cpp index aa2d526bd..ee1e552f8 100644 --- 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; } - 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) { @@ -103,7 +103,7 @@ static int init_validation_ctx(struct validation_ctx *ctx, char *xsd_path) } 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: @@ -116,7 +116,7 @@ end: 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);