summaryrefslogtreecommitdiffstats
path: root/sfx2/source/notify/globalevents.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/notify/globalevents.cxx')
-rw-r--r--sfx2/source/notify/globalevents.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/notify/globalevents.cxx b/sfx2/source/notify/globalevents.cxx
index 3cc3cc05500f..844fd7a676bd 100644
--- a/sfx2/source/notify/globalevents.cxx
+++ b/sfx2/source/notify/globalevents.cxx
@@ -319,9 +319,7 @@ uno::Reference< container::XEnumeration > SAL_CALL SfxGlobalEvents_Impl::createE
{
models[i] <<= m_lModels[i];
}
- uno::Reference< container::XEnumeration > xEnum(
- static_cast<container::XEnumeration*>(
- new ::comphelper::OAnyEnumeration(models)));
+ uno::Reference<container::XEnumeration> xEnum(new ::comphelper::OAnyEnumeration(models));
aLock.clear();
// <- SAFE