mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-15 19:48:00 +01:00
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:
parent
33d52bf39b
commit
a5a4d4613e
2 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
|
|
|
@ -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_)
|
||||
|
|
Loading…
Reference in a new issue