summaryrefslogtreecommitdiff
path: root/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/customshapes/EnhancedCustomShapeFontWork.cxx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeFontWork.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
index 6a88afe524df..8ccc0337389c 100644
--- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
@@ -554,9 +554,9 @@ static basegfx::B2DPolyPolygon GetOutlinesFromShape2d( const SdrObject* pShape2d
while( aObjListIter.IsMore() )
{
SdrObject* pPartObj = aObjListIter.Next();
- if ( dynamic_cast<const SdrPathObj*>( pPartObj) != nullptr )
+ if ( auto pPathObj = dynamic_cast<const SdrPathObj*>( pPartObj))
{
- basegfx::B2DPolyPolygon aCandidate(static_cast<SdrPathObj*>(pPartObj)->GetPathPoly());
+ basegfx::B2DPolyPolygon aCandidate(pPathObj->GetPathPoly());
if(aCandidate.areControlPointsUsed())
{
aCandidate = basegfx::utils::adaptiveSubdivideByAngle(aCandidate);