diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-13 11:30:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-13 13:29:08 +0200 |
commit | 530d0e0569342742d7bcf529b77ba4a409cf01a9 (patch) | |
tree | 95ce9c30275c0f6806dc004e9aeab2faee5a4693 /svx/source/customshapes | |
parent | 1374f5fdcbbd24b9ba614b378fd94f5ff95ad102 (diff) |
static_cast after dynamic_cast
Change-Id: If93fa126f10393a250cc1ad64bee28e84c42a6b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104226
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/customshapes')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShapeFontWork.cxx | 4 |
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); |