Clean-up: modernize pretty_xml.cpp master
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 1 May 2024 15:21:04 +0000 (11:21 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 1 May 2024 16:08:00 +0000 (16:08 +0000)
commitf59edc7cf8bfcf1450ce2d9e649f70c1e6796da0
treeeb356ed7ec624d0c74f4fc429ebde39dbb6892d9
parent0e9cf259c6e7f66b48c07365dca15903cd352164
Clean-up: modernize pretty_xml.cpp

Since pretty_xml was converted to C++, clang-tidy had a number of
grievances such as the use of NULL (instead of nullptr).

Since the file is very small, it is modernized to address those issues:
  - Wrap libxml2 resources in RAII wrappers
  - Use C++ IO APIs in lieu of fprintf

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ie90e3e05130f7916f411e0de36e8aac72a0f790c
tests/utils/xml-utils/common.hpp
tests/utils/xml-utils/extract_xml.cpp
tests/utils/xml-utils/pretty_xml.cpp
This page took 0.024811 seconds and 4 git commands to generate.