diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-17 08:47:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-17 09:13:20 +0100 |
commit | 779e20ec8deadc80f244f2b76d086638c273c7ab (patch) | |
tree | 47a0b029987e61c7857784ae6459f9d6fd63d238 /configmgr | |
parent | 44d308c5fb78c096d0a18ff3eb19171e2aeab118 (diff) |
loplugin:referencecasting in configmgr
Change-Id: Ib74468d3a6a40b32896c58b0d30e3121ee834e1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111027
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/access.cxx | 8 | ||||
-rw-r--r-- | configmgr/source/rootaccess.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx index 619629f95c79..86e09cbae35f 100644 --- a/configmgr/source/access.cxx +++ b/configmgr/source/access.cxx @@ -1230,7 +1230,7 @@ void Access::initDisposeBroadcaster(Broadcaster * broadcaster) { for (auto const& containerListener : containerListeners_) { broadcaster->addDisposeNotification( - containerListener.get(), + containerListener, css::lang::EventObject(static_cast< cppu::OWeakObject * >(this))); } for (auto const& propertyChangeListener : propertyChangeListeners_) @@ -1238,7 +1238,7 @@ void Access::initDisposeBroadcaster(Broadcaster * broadcaster) { for (auto const& propertyChangeListenerElement : propertyChangeListener.second) { broadcaster->addDisposeNotification( - propertyChangeListenerElement.get(), + propertyChangeListenerElement, css::lang::EventObject( static_cast< cppu::OWeakObject * >(this))); } @@ -1248,7 +1248,7 @@ void Access::initDisposeBroadcaster(Broadcaster * broadcaster) { for (auto const& vetoableChangeListenerElement : vetoableChangeListener.second) { broadcaster->addDisposeNotification( - vetoableChangeListenerElement.get(), + vetoableChangeListenerElement, css::lang::EventObject( static_cast< cppu::OWeakObject * >(this))); } @@ -1256,7 +1256,7 @@ void Access::initDisposeBroadcaster(Broadcaster * broadcaster) { for (auto const& propertiesChangeListener : propertiesChangeListeners_) { broadcaster->addDisposeNotification( - propertiesChangeListener.get(), + propertiesChangeListener, css::lang::EventObject(static_cast< cppu::OWeakObject * >(this))); } //TODO: iterate over children w/ listeners (incl. unmodified ones): diff --git a/configmgr/source/rootaccess.cxx b/configmgr/source/rootaccess.cxx index a3804fa47d4d..985560d02177 100644 --- a/configmgr/source/rootaccess.cxx +++ b/configmgr/source/rootaccess.cxx @@ -267,7 +267,7 @@ void RootAccess::initDisposeBroadcaster(Broadcaster * broadcaster) { for (auto const& changesListener : changesListeners_) { broadcaster->addDisposeNotification( - changesListener.get(), + changesListener, css::lang::EventObject(static_cast< cppu::OWeakObject * >(this))); } Access::initDisposeBroadcaster(broadcaster); |