summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-16 14:41:23 +0300
committerTor Lillqvist <tml@collabora.com>2016-08-16 20:55:27 +0300
commite8ac831bd6d5f2524bab826bfbedf23f8952bbce (patch)
tree10f0f901123055bdbca527a522d77b872ab65f75 /sd
parentf1bca4ad79dd95a412e8b321a168b518bf3e0eaa (diff)
Fix 'AddressSanitizer: container-overflow' problem detected on OS X
Patch by Noel. Committed and this message written by tml, who doesn't fully understand what the code does, but this definitely fixes the problem. Change-Id: Ifdc9faac0323028fa2888eb4a2d68e6ae5a905ae
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx b/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx
index 5ee7f9d15780..ae6aa3a466bc 100644
--- a/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx
+++ b/sd/source/ui/framework/configuration/ConfigurationControllerBroadcaster.cxx
@@ -165,8 +165,8 @@ void ConfigurationControllerBroadcaster::DisposeAndClear()
}
else
{
- Reference<lang::XEventListener> xListener (
- iMap->second.front().mxListener, UNO_QUERY);
+ Reference<XConfigurationChangeListener> xListener (
+ iMap->second.front().mxListener );
if (xListener.is())
{
// Tell the listener that the configuration controller is
@@ -174,7 +174,7 @@ void ConfigurationControllerBroadcaster::DisposeAndClear()
// types).
try
{
- RemoveListener(iMap->second.front().mxListener);
+ RemoveListener(xListener);
xListener->disposing(aEvent);
}
catch (const RuntimeException&)