summaryrefslogtreecommitdiff
path: root/src/utils/xml_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-20 21:20:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-20 21:20:59 +0300
commit21069ec1635bd24ab33805e033d28f2c0b2de482 (patch)
treefaaa3b2cdebc89b0202151b27595864535395585 /src/utils/xml_unittest.cc
parent65c3c7a8ac6437d507597b840fc20dc1cad5fbf1 (diff)
downloadmanaplus-21069ec1635bd24ab33805e033d28f2c0b2de482.tar.gz
manaplus-21069ec1635bd24ab33805e033d28f2c0b2de482.tar.bz2
manaplus-21069ec1635bd24ab33805e033d28f2c0b2de482.tar.xz
manaplus-21069ec1635bd24ab33805e033d28f2c0b2de482.zip
Add missing const in utils directory.
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));