summaryrefslogtreecommitdiff
path: root/src/utils/xml_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/xml_unittest.cc')
-rw-r--r--src/utils/xml_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/xml_unittest.cc b/src/utils/xml_unittest.cc
index fdee8de5d..e228392a5 100644
--- a/src/utils/xml_unittest.cc
+++ b/src/utils/xml_unittest.cc
@@ -58,7 +58,7 @@ TEST_CASE("xml doc")
SECTION("load2")
{
- const char *xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
+ const char *const xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
"<root><data option1=\"false\" option2=\"true\"/>"
"<cont>this is test</cont></root>";
XML::Document doc(xml, strlen(xml));
@@ -92,7 +92,7 @@ TEST_CASE("xml doc")
SECTION("load4")
{
- const char *xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
+ const char *const xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
"<root>this is test</root>";
XML::Document doc(xml, strlen(xml));
REQUIRE(doc.isLoaded() == true);
@@ -191,7 +191,7 @@ TEST_CASE("xml doc")
SECTION("child2")
{
- const char *xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
+ const char *const xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
"<root><data option1=\"false\" option2=\"true\" "
"option3=\"10.5\"/></root>";
XML::Document doc(xml, strlen(xml));