Resolved warnings.

Resolved occurrences of warnings C4456 and C4457.

warning C4456: declaration of 'identifier' hides previous local
declaration
warning C4457: declaration of 'identifier' hides function parameter
This commit is contained in:
Ben Key 2016-04-03 06:00:29 -05:00 committed by BenKeyFSI
parent 33d52bf39b
commit a5a4d4613e
2 changed files with 9 additions and 9 deletions

View file

@ -208,10 +208,10 @@ class Parser : protected Arabica::SAX::DefaultHandler<stringT, typename ParserTy
// attributes here
for(int i = 0; i < atts.getLength(); ++i)
{
stringT qName = atts.getQName(i);
if(string_adaptorT::empty(qName))
qName = atts.getLocalName(i);
elem.setAttributeNS(atts.getURI(i), qName, atts.getValue(i));
stringT attName = atts.getQName(i);
if(string_adaptorT::empty(attName))
attName = atts.getLocalName(i);
elem.setAttributeNS(atts.getURI(i), attName, atts.getValue(i));
}
currentNode_ = elem;

View file

@ -113,8 +113,8 @@ class EventTargetImpl : virtual public Arabica::DOM::Events::EventTarget_impl<st
EventTargetImplT* nodeImpl = dynamic_cast<EventTargetImplT*>(it->Impl());
if (nodeImpl != NULL) {
std::pair<eventListenerIterator, eventListenerIterator> range = nodeImpl->eventCapturers_.equal_range(event.getType());
for (eventListenerIterator it = range.first; it != range.second; ++it) {
it->second->handleEvent(event);
for (eventListenerIterator itListener = range.first; itListener != range.second; ++itListener) {
itListener->second->handleEvent(event);
}
// stopPropagation was called on the event
if (eventImpl->stopped_)
@ -137,9 +137,9 @@ class EventTargetImpl : virtual public Arabica::DOM::Events::EventTarget_impl<st
while(rit != eventAncestorChain.rend()) {
EventTargetImplT* nodeImpl = dynamic_cast<EventTargetImplT*>(rit->Impl());
if (nodeImpl != NULL) {
std::pair<eventListenerIterator, eventListenerIterator> range = nodeImpl->eventListeners_.equal_range(event.getType());
for (eventListenerIterator rit = range.first; rit != range.second; ++rit) {
rit->second->handleEvent(event);
std::pair<eventListenerIterator, eventListenerIterator> range1 = nodeImpl->eventListeners_.equal_range(event.getType());
for (eventListenerIterator ritListener = range1.first; ritListener != range1.second; ++ritListener) {
ritListener->second->handleEvent(event);
}
// stopPropagation was called on the event
if (eventImpl->stopped_)