summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-24 13:08:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-27 10:44:25 +0100
commit2e5508a17660401e1b4b489dbc9f70b978745b75 (patch)
tree881afcf9d8b9f0a653df0c94a8a2deefdf85670e /unoxml
parent470682b3abf0622f5e9663d62d8641f63ceb6f30 (diff)
loplugin:unnecessaryparen check for (f1()).f2
Change-Id: I93257b0ddd41c649875124d6d5c5faeaa431bae3 Reviewed-on: https://gerrit.libreoffice.org/45218 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoxml')
-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 27a394940233..85f6df5b9c14 100644
--- a/unoxml/source/events/eventdispatcher.cxx
+++ b/unoxml/source/events/eventdispatcher.cxx
@@ -67,7 +67,7 @@ namespace DOM { namespace events {
while (iter != rMap.end() && iter->first == pNode)
{
// erase all references to specified listener
- if ((iter->second).is() && iter->second == aListener)
+ if (iter->second.is() && iter->second == aListener)
{
ListenerMap::iterator tmp_iter = iter;
++iter;
@@ -96,7 +96,7 @@ namespace DOM { namespace events {
auto const ibound = rMap.upper_bound(pNode);
for( ; iter != ibound; ++iter )
{
- if((iter->second).is())
+ if(iter->second.is())
(iter->second)->handleEvent(xEvent);
}
}