summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-03-17 21:36:10 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-03-17 20:24:17 +0100
commit04cf6de098f0677b2623377c20983f229f0156be (patch)
tree084fb5365305e4579d9ce7242630d4c6888a091b /toolkit
parent4859d0b6cee9477ab65e86923e7c0a0b88022d8e (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 'toolkit')
-rw-r--r--toolkit/source/controls/geometrycontrolmodel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/controls/geometrycontrolmodel.cxx b/toolkit/source/controls/geometrycontrolmodel.cxx
index 8f576dc7c312..fedcd4dc1d29 100644
--- a/toolkit/source/controls/geometrycontrolmodel.cxx
+++ b/toolkit/source/controls/geometrycontrolmodel.cxx
@@ -420,7 +420,7 @@
Reference< XNameContainer > SAL_CALL OGeometryControlModel_Base::getEvents()
{
if( !mxEventContainer.is() )
- mxEventContainer = static_cast<XNameContainer*>(new toolkit::ScriptEventContainer());
+ mxEventContainer = new toolkit::ScriptEventContainer();
return mxEventContainer;
}