GH #1050 XML: fix gcc -Wshadow warnings

This commit is contained in:
Miklos Vajna
2015-12-14 10:31:10 +01:00
parent cfdf3e4134
commit 063011ba75
23 changed files with 193 additions and 193 deletions

View File

@@ -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);
}