diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-03-17 21:36:10 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-03-17 20:24:17 +0100 |
commit | 04cf6de098f0677b2623377c20983f229f0156be (patch) | |
tree | 084fb5365305e4579d9ce7242630d4c6888a091b /sfx2 | |
parent | 4859d0b6cee9477ab65e86923e7c0a0b88022d8e (diff) |
tdf#120703 PVS: remove redundant static casts
V572 It is odd that the object which was created using 'new' operator
is immediately cast to another type.
Change-Id: I6d1523e71b3e06be1cf41abaabb44e49fe11cd8e
Reviewed-on: https://gerrit.libreoffice.org/69369
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/notify/globalevents.cxx | 4 |
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 |