summaryrefslogtreecommitdiff
path: root/svx/source/unodraw
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-11-02 09:44:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-11-02 13:30:14 +0100
commita6cf6ac1f6df02c9fe733858f2aae866ffd38569 (patch)
treeb32b5e5ad055586024a2aab6daded70d061a4204 /svx/source/unodraw
parent965ffbf0c22a1ad780ad92e2e7c54522d9e6a7d0 (diff)
tdf#54857 elide more dynamic_cast
Change-Id: I0cbdb2ee46600559d9a37f09b574d484e72a0e0d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142133 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r--svx/source/unodraw/unoshap3.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/unodraw/unoshap3.cxx b/svx/source/unodraw/unoshap3.cxx
index 18f050d5c4af..ea4e90ee46cb 100644
--- a/svx/source/unodraw/unoshap3.cxx
+++ b/svx/source/unodraw/unoshap3.cxx
@@ -117,7 +117,7 @@ void SAL_CALL Svx3DSceneObject::add( const Reference< drawing::XShape >& xShape
throw uno::RuntimeException();
rtl::Reference<SdrObject> pSdrShape = mxPage->CreateSdrObject_( xShape );
- if( dynamic_cast<const E3dObject* >(pSdrShape.get()) != nullptr )
+ if( DynCastE3dObject(pSdrShape.get()) )
{
GetSdrObject()->GetSubList()->NbcInsertObject( pSdrShape.get() );
pShape->Create(pSdrShape.get(), mxPage.get());
@@ -139,7 +139,7 @@ void Svx3DSceneObject::addShape( SvxShape& rShape )
throw uno::RuntimeException();
rtl::Reference<SdrObject> pSdrShape = mxPage->CreateSdrObject_( &rShape );
- if( dynamic_cast<const E3dObject* >(pSdrShape.get()) != nullptr )
+ if( DynCastE3dObject(pSdrShape.get()) )
{
GetSdrObject()->GetSubList()->NbcInsertObject( pSdrShape.get() );
rShape.Create(pSdrShape.get(), mxPage.get());