From ff49c04a47dc044fef56d83f924ebd919172c1c0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 11 Feb 2020 08:23:51 +0100 Subject: [PATCH] Avoid needless ListenerList temporary Change-Id: I0670a013136c8d8d7e7fb5caca54812f4fa490e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88422 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- .../configuration/ConfigurationControllerBroadcaster.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx b/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx index 51e24b81ce41..882549fa059b 100644 --- a/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx @@ -46,7 +46,7 @@ void ConfigurationControllerBroadcaster::AddListener( mxConfigurationController, 0); - maListenerMap.try_emplace(rsEventType, ListenerList()); + maListenerMap.try_emplace(rsEventType); ListenerDescriptor aDescriptor; aDescriptor.mxListener = rxListener;