diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-01-10 13:58:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-10 14:59:31 +0100 |
commit | 8f453c674f19188360ba5895c2bd9bd80273a83b (patch) | |
tree | ce569bb8caeaea0b110e1e23e845716cb841588f /chart2 | |
parent | c5367ee0a60966b755e726de6d175dfcd1630741 (diff) |
static_cast after dynamic_cast
Change-Id: I3792ddadad9582a7e6f4740829c081d9571ddaff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109049
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/SelectionHelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/main/SelectionHelper.cxx b/chart2/source/controller/main/SelectionHelper.cxx index 5475be204c00..29c71c5c1097 100644 --- a/chart2/source/controller/main/SelectionHelper.cxx +++ b/chart2/source/controller/main/SelectionHelper.cxx @@ -584,11 +584,11 @@ bool SelectionHelper::getMarkHandles( SdrHdlList& rHdlList ) if( m_pMarkObj && m_pMarkObj != m_pSelectedObj) { rHdlList.Clear(); - if( dynamic_cast<const SdrPathObj*>( m_pMarkObj) != nullptr ) + if( auto pPathObj = dynamic_cast<const SdrPathObj*>( m_pMarkObj) ) { //if th object is a polygon //from each point a handle is generated - const ::basegfx::B2DPolyPolygon& rPolyPolygon = static_cast<SdrPathObj*>(m_pMarkObj)->GetPathPoly(); + const ::basegfx::B2DPolyPolygon& rPolyPolygon = pPathObj->GetPathPoly(); for( sal_uInt32 nN = 0; nN < rPolyPolygon.count(); nN++) { const ::basegfx::B2DPolygon& aPolygon(rPolyPolygon.getB2DPolygon(nN)); |