mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-07 05:58:43 +01:00
GH #1050 XML: fix gcc -Wshadow warnings
This commit is contained in:
@@ -23,11 +23,11 @@ namespace Poco {
|
||||
namespace XML {
|
||||
|
||||
|
||||
Attr::Attr(Document* pOwnerDocument, Element* pOwnerElement, const XMLString& namespaceURI, const XMLString& localName, const XMLString& qname, const XMLString& value, bool specified):
|
||||
Attr::Attr(Document* pOwnerDocument, Element* pOwnerElement, const XMLString& rNamespaceURI, const XMLString& rLocalName, const XMLString& qname, const XMLString& rValue, bool isSpecified):
|
||||
AbstractNode(pOwnerDocument),
|
||||
_name(pOwnerDocument->namePool().insert(qname, namespaceURI, localName)),
|
||||
_value(value),
|
||||
_specified(specified)
|
||||
_name(pOwnerDocument->namePool().insert(qname, rNamespaceURI, rLocalName)),
|
||||
_value(rValue),
|
||||
_specified(isSpecified)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -46,13 +46,13 @@ Attr::~Attr()
|
||||
}
|
||||
|
||||
|
||||
void Attr::setValue(const XMLString& value)
|
||||
void Attr::setValue(const XMLString& rValue)
|
||||
{
|
||||
XMLString oldValue = _value;
|
||||
_value = value;
|
||||
_value = rValue;
|
||||
_specified = true;
|
||||
if (_pParent && !_pOwner->eventsSuspended())
|
||||
_pParent->dispatchAttrModified(this, MutationEvent::MODIFICATION, oldValue, value);
|
||||
_pParent->dispatchAttrModified(this, MutationEvent::MODIFICATION, oldValue, rValue);
|
||||
}
|
||||
|
||||
|
||||
@@ -90,9 +90,9 @@ const XMLString& Attr::getNodeValue() const
|
||||
}
|
||||
|
||||
|
||||
void Attr::setNodeValue(const XMLString& value)
|
||||
void Attr::setNodeValue(const XMLString& rValue)
|
||||
{
|
||||
setValue(value);
|
||||
setValue(rValue);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user