summaryrefslogtreecommitdiffstats
path: root/svx/source/unodraw/unomod.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-03-31 00:06:17 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-03-31 07:27:24 +0200
commit184be2d1352c5d3f3aa1e276d26c463c6e49b302 (patch)
tree65ee35397f445b264dcb05d0087aed60000f0e75 /svx/source/unodraw/unomod.cxx
parentlicense: fix one more internal link (diff)
downloadcore-184be2d1352c5d3f3aa1e276d26c463c6e49b302.tar.gz
core-184be2d1352c5d3f3aa1e276d26c463c6e49b302.zip
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: I54976062dc3f62eaaa79f89eff54454f0b24ac2c Reviewed-on: https://gerrit.libreoffice.org/69989 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/unodraw/unomod.cxx')
-rw-r--r--svx/source/unodraw/unomod.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/unodraw/unomod.cxx b/svx/source/unodraw/unomod.cxx
index bbbf62c9b398..30b545846808 100644
--- a/svx/source/unodraw/unomod.cxx
+++ b/svx/source/unodraw/unomod.cxx
@@ -343,7 +343,7 @@ uno::Reference< drawing::XDrawPages > SAL_CALL SvxUnoDrawingModel::getDrawPages(
uno::Reference< drawing::XDrawPages > xDrawPages( mxDrawPagesAccess );
if( !xDrawPages.is() )
- mxDrawPagesAccess = xDrawPages = static_cast<drawing::XDrawPages*>(new SvxUnoDrawPagesAccess(*this));
+ mxDrawPagesAccess = xDrawPages = new SvxUnoDrawPagesAccess(*this);
return xDrawPages;
}