summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx b/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx
index c3ff65ccb80e..51e24b81ce41 100644
--- a/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx
+++ b/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx
@@ -46,8 +46,8 @@ void ConfigurationControllerBroadcaster::AddListener(
mxConfigurationController,
0);
- if (maListenerMap.find(rsEventType) == maListenerMap.end())
- maListenerMap[rsEventType] = ListenerList();
+ maListenerMap.try_emplace(rsEventType, ListenerList());
+
ListenerDescriptor aDescriptor;
aDescriptor.mxListener = rxListener;
aDescriptor.maUserData = rUserData;