Better for boolean value store
This commit is contained in:
parent
1a5288047e
commit
19885eee7b
@ -4703,7 +4703,7 @@ PUGI__NS_BEGIN
|
||||
template <typename String, typename Header>
|
||||
PUGI__FN bool set_value_bool(String& dest, Header& header, uintptr_t header_mask, bool value)
|
||||
{
|
||||
return strcpy_insitu(dest, header, header_mask, value ? PUGIXML_TEXT("true") : PUGIXML_TEXT("false"), value ? 4 : 5);
|
||||
return strcpy_insitu(dest, header, header_mask, value ? PUGIXML_TEXT("true") : PUGIXML_TEXT("false"), value ? 4 : 5, true);
|
||||
}
|
||||
|
||||
PUGI__FN xml_parse_result load_buffer_impl(xml_document_struct* doc, xml_node_struct* root, void* contents, size_t size, unsigned int options, xml_encoding encoding, bool is_mutable, bool own, char_t** out_buffer)
|
||||
|
||||
@ -247,8 +247,8 @@ namespace pugi {
|
||||
bool value;
|
||||
operator bool() const { return value; }
|
||||
};
|
||||
static const boolean true_value(true);
|
||||
static const boolean false_value(false);
|
||||
static const boolean (true_value)(true);
|
||||
static const boolean (false_value)(false);
|
||||
} // namespace pugi
|
||||
|
||||
namespace pugi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user