bool improvements

Change-Id: Ibf171ce82595a135c544fcf31c666e384e1fbd26
This commit is contained in:
Stephan Bergmann
2014-01-28 19:59:32 +01:00
parent 6f9976db93
commit eb75ea239b

View File

@@ -215,7 +215,7 @@ namespace DOM { namespace events {
{ {
pEvent->m_currentTarget = rinode->first; pEvent->m_currentTarget = rinode->first;
callListeners(captureListeners, rinode->second, aType, xEvent); callListeners(captureListeners, rinode->second, aType, xEvent);
if (pEvent->m_canceled) return sal_True; if (pEvent->m_canceled) return true;
++rinode; ++rinode;
} }
@@ -225,7 +225,7 @@ namespace DOM { namespace events {
pEvent->m_phase = PhaseType_AT_TARGET; pEvent->m_phase = PhaseType_AT_TARGET;
pEvent->m_currentTarget = inode->first; pEvent->m_currentTarget = inode->first;
callListeners(targetListeners, inode->second, aType, xEvent); callListeners(targetListeners, inode->second, aType, xEvent);
if (pEvent->m_canceled) return sal_True; if (pEvent->m_canceled) return true;
// bubbeling phase // bubbeling phase
++inode; ++inode;
if (i_xEvent->getBubbles()) { if (i_xEvent->getBubbles()) {
@@ -235,12 +235,12 @@ namespace DOM { namespace events {
pEvent->m_currentTarget = inode->first; pEvent->m_currentTarget = inode->first;
callListeners(targetListeners, callListeners(targetListeners,
inode->second, aType, xEvent); inode->second, aType, xEvent);
if (pEvent->m_canceled) return sal_True; if (pEvent->m_canceled) return true;
++inode; ++inode;
} }
} }
} }
return sal_True; return true;
} }
}} }}