mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 10:09:36 +02:00
merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8
This commit is contained in:
@@ -19,24 +19,35 @@ namespace Poco {
|
||||
namespace XML {
|
||||
|
||||
|
||||
AttributesImpl::EmptyAttribute::EmptyAttribute()
|
||||
{
|
||||
specified = false;
|
||||
type = XML_LIT("CDATA");
|
||||
}
|
||||
|
||||
|
||||
AttributesImpl::EmptyAttribute AttributesImpl::_empty;
|
||||
|
||||
|
||||
AttributesImpl::AttributesImpl()
|
||||
{
|
||||
_empty.specified = false;
|
||||
_empty.type = XML_LIT("CDATA");
|
||||
}
|
||||
|
||||
|
||||
AttributesImpl::AttributesImpl(const Attributes& attributes)
|
||||
{
|
||||
_empty.specified = false;
|
||||
_empty.type = XML_LIT("CDATA");
|
||||
setAttributes(attributes);
|
||||
}
|
||||
|
||||
|
||||
AttributesImpl::AttributesImpl(const AttributesImpl& attributes):
|
||||
_attributes(attributes._attributes),
|
||||
_empty(attributes._empty)
|
||||
_attributes(attributes._attributes)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
AttributesImpl::AttributesImpl(AttributesImpl&& attributes) noexcept:
|
||||
_attributes(std::move(attributes._attributes))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -56,6 +67,14 @@ AttributesImpl& AttributesImpl::operator = (const AttributesImpl& attributes)
|
||||
}
|
||||
|
||||
|
||||
AttributesImpl& AttributesImpl::operator = (AttributesImpl&& attributes) noexcept
|
||||
{
|
||||
_attributes = std::move(attributes._attributes);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
int AttributesImpl::getIndex(const XMLString& qname) const
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
Reference in New Issue
Block a user