summaryrefslogtreecommitdiff
path: root/unoxml/source/events/eventdispatcher.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/events/eventdispatcher.cxx')
-rw-r--r--unoxml/source/events/eventdispatcher.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unoxml/source/events/eventdispatcher.cxx b/unoxml/source/events/eventdispatcher.cxx
index 51572eea5e99..27a394940233 100644
--- a/unoxml/source/events/eventdispatcher.cxx
+++ b/unoxml/source/events/eventdispatcher.cxx
@@ -36,7 +36,7 @@ namespace DOM { namespace events {
void CEventDispatcher::addListener(xmlNodePtr pNode, const OUString& aType, const Reference<XEventListener>& aListener, bool bCapture)
{
- TypeListenerMap *const pTMap = (bCapture)
+ TypeListenerMap *const pTMap = bCapture
? (& m_CaptureListeners) : (& m_TargetListeners);
// get the multimap for the specified type
@@ -55,7 +55,7 @@ namespace DOM { namespace events {
void CEventDispatcher::removeListener(xmlNodePtr pNode, const OUString& aType, const Reference<XEventListener>& aListener, bool bCapture)
{
- TypeListenerMap *const pTMap = (bCapture)
+ TypeListenerMap *const pTMap = bCapture
? (& m_CaptureListeners) : (& m_TargetListeners);
// get the multimap for the specified type