[Libreoffice-commits] core.git: configmgr/source
Noel (via logerrit)
logerrit at kemper.freedesktop.org
Wed Feb 17 08:14:04 UTC 2021
configmgr/source/access.cxx | 8 ++++----
configmgr/source/rootaccess.cxx | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 779e20ec8deadc80f244f2b76d086638c273c7ab
Author: Noel <noel.grandin at collabora.co.uk>
AuthorDate: Wed Feb 17 08:47:55 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Feb 17 09:13:20 2021 +0100
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 at collabora.co.uk>
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);
More information about the Libreoffice-commits
mailing list