Fix attribute round trip for float as well
This commit is contained in:
parent
32f0a8bd3a
commit
4ae1940065
@ -4608,6 +4608,13 @@ namespace pugi
|
|||||||
return impl::set_value_convert(_attr->value, _attr->header, impl::xml_memory_page_value_allocated_mask, rhs);
|
return impl::set_value_convert(_attr->value, _attr->header, impl::xml_memory_page_value_allocated_mask, rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PUGI__FN bool xml_attribute::set_value(float rhs)
|
||||||
|
{
|
||||||
|
if (!_attr) return false;
|
||||||
|
|
||||||
|
return impl::set_value_convert(_attr->value, _attr->header, impl::xml_memory_page_value_allocated_mask, rhs);
|
||||||
|
}
|
||||||
|
|
||||||
PUGI__FN bool xml_attribute::set_value(bool rhs)
|
PUGI__FN bool xml_attribute::set_value(bool rhs)
|
||||||
{
|
{
|
||||||
if (!_attr) return false;
|
if (!_attr) return false;
|
||||||
|
|||||||
@ -352,6 +352,7 @@ namespace pugi
|
|||||||
bool set_value(int rhs);
|
bool set_value(int rhs);
|
||||||
bool set_value(unsigned int rhs);
|
bool set_value(unsigned int rhs);
|
||||||
bool set_value(double rhs);
|
bool set_value(double rhs);
|
||||||
|
bool set_value(float rhs);
|
||||||
bool set_value(bool rhs);
|
bool set_value(bool rhs);
|
||||||
|
|
||||||
#ifdef PUGIXML_HAS_LONG_LONG
|
#ifdef PUGIXML_HAS_LONG_LONG
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user