diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 19:59:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:20 +0100 |
commit | eb75ea239b83035b19c6057f5a3de422e8097539 (patch) | |
tree | ad1b42101b72ef1c821c6ccda911e75d83e7911d /unoxml | |
parent | 6f9976db93df59231dbe8d2bca66f166d6ec0ab3 (diff) |
bool improvements
Change-Id: Ibf171ce82595a135c544fcf31c666e384e1fbd26
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/events/eventdispatcher.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unoxml/source/events/eventdispatcher.cxx b/unoxml/source/events/eventdispatcher.cxx index 16c98f663817..f159e472b0f9 100644 --- a/unoxml/source/events/eventdispatcher.cxx +++ b/unoxml/source/events/eventdispatcher.cxx @@ -215,7 +215,7 @@ namespace DOM { namespace events { { pEvent->m_currentTarget = rinode->first; callListeners(captureListeners, rinode->second, aType, xEvent); - if (pEvent->m_canceled) return sal_True; + if (pEvent->m_canceled) return true; ++rinode; } @@ -225,7 +225,7 @@ namespace DOM { namespace events { pEvent->m_phase = PhaseType_AT_TARGET; pEvent->m_currentTarget = inode->first; callListeners(targetListeners, inode->second, aType, xEvent); - if (pEvent->m_canceled) return sal_True; + if (pEvent->m_canceled) return true; // bubbeling phase ++inode; if (i_xEvent->getBubbles()) { @@ -235,12 +235,12 @@ namespace DOM { namespace events { pEvent->m_currentTarget = inode->first; callListeners(targetListeners, inode->second, aType, xEvent); - if (pEvent->m_canceled) return sal_True; + if (pEvent->m_canceled) return true; ++inode; } } } - return sal_True; + return true; } }} |