From a328bb527b331757b5707fa21a8eb04a98e4a0ff Mon Sep 17 00:00:00 2001 From: halx99 Date: Sat, 4 Feb 2023 14:36:01 +0800 Subject: [PATCH] Fix ci --- src/pugixml.cpp | 6 +++--- src/pugixml.hpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 1555b0c..a648e04 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -5499,7 +5499,7 @@ namespace pugi return impl::strcpy_insitu(_attr->value, _attr->value_len, _attr->header, impl::xml_memory_page_value_allocated_mask, rhs.data(), rhs.length(), shallow_copy); } - PUGI__FN bool xml_attribute::set_value(char_t* rhs, size_t sz) + PUGI__FN bool xml_attribute::set_value(const char_t* rhs, size_t sz) { return set_value(string_view_t{rhs, sz }); } @@ -5872,7 +5872,7 @@ namespace pugi return impl::strcpy_insitu(_root->value, _root->value_len, _root->header, impl::xml_memory_page_value_allocated_mask, rhs.data(), rhs.length(), shallow_copy); } - PUGI__FN bool xml_node::set_value(char_t* rhs, size_t sz) + PUGI__FN bool xml_node::set_value(const char_t* rhs, size_t sz) { return set_value(string_view_t{ rhs, sz }); } @@ -6737,7 +6737,7 @@ namespace pugi return dn ? impl::strcpy_insitu(dn->value, dn->value_len, dn->header, impl::xml_memory_page_value_allocated_mask, rhs.data(), rhs.length(), shallow_copy) : false; } - PUGI__FN bool xml_text::set(char_t* rhs, size_t sz) + PUGI__FN bool xml_text::set(const char_t* rhs, size_t sz) { return set(string_view_t{ rhs, sz }); } diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 308271c..8adbb6f 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -570,7 +570,7 @@ namespace pugi // Set attribute name/value (returns false if attribute is empty or there is not enough memory) bool set_name(string_view_t rhs, boolean shallow_copy = pugi::false_value); bool set_value(string_view_t rhs, boolean shallow_copy = pugi::false_value); - bool set_value(char_t*, size_t sz); // 1.13 ABI compatible + bool set_value(const char_t*, size_t sz); // 1.13 ABI compatible // Set attribute value with type conversion (numbers are converted to strings, boolean is converted to "true"/"false") bool set_value(int rhs); @@ -705,7 +705,7 @@ namespace pugi // Set node name/value (returns false if node is empty, there is not enough memory, or node can not have name/value) bool set_name(string_view_t rhs, boolean shallow_copy = pugi::false_value); bool set_value(string_view_t rhs, boolean shallow_copy = pugi::false_value); - bool set_value(char_t* rhs, size_t sz); // 1.13 ABI compatible + bool set_value(const char_t* rhs, size_t sz); // 1.13 ABI compatible // Add attribute with specified name. Returns added attribute, or empty attribute on errors. xml_attribute append_attribute(string_view_t name, boolean shallow_copy = pugi::false_value); @@ -934,7 +934,7 @@ namespace pugi // Set text (returns false if object is empty or there is not enough memory) bool set(string_view_t rhs, boolean shallow_copy = pugi::false_value); - bool set(char_t* rhs, size_t sz); // 1.13 ABI compatible + bool set(const char_t* rhs, size_t sz); // 1.13 ABI compatible // Set text with type conversion (numbers are converted to strings, boolean is converted to "true"/"false") bool set(int rhs);