diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-03-07 18:41:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-08 07:40:01 +0100 |
commit | c7b898df4d452746399621f6adc8e7da088f0f3a (patch) | |
tree | eb4cb09ceef899c3015724b6d3f81f1e8a4a6ce1 /svx/source/toolbars | |
parent | 04e7a34a19b3658de57c4f2b3b0fa8445b01f199 (diff) |
clean up some more dynamic/static casting
using a hacked version of the staticdynamic plugin
and some judgement
Change-Id: I5e6668b19320025e419f84bebceade4239577729
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112137
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/toolbars')
-rw-r--r-- | svx/source/toolbars/fontworkbar.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/toolbars/fontworkbar.cxx b/svx/source/toolbars/fontworkbar.cxx index 36cd9652b2aa..3399b20d79ea 100644 --- a/svx/source/toolbars/fontworkbar.cxx +++ b/svx/source/toolbars/fontworkbar.cxx @@ -436,7 +436,7 @@ void FontworkBar::execute( SdrView& rSdrView, SfxRequest const & rReq, SfxBindin for( size_t i = 0; i < nCount; ++i ) { SdrObject* pObj = rMarkList.GetMark( i )->GetMarkedSdrObj(); - if( dynamic_cast<const SdrObjCustomShape*>( pObj) != nullptr ) + if( auto pCustomShape = dynamic_cast<SdrObjCustomShape*>( pObj) ) { const bool bUndo = rSdrView.IsUndoEnabled(); @@ -450,7 +450,7 @@ void FontworkBar::execute( SdrView& rSdrView, SfxRequest const & rReq, SfxBindin GetGeometryForCustomShape( aGeometryItem, aCustomShape ); pObj->SetMergedItem( aGeometryItem ); - Reference< drawing::XShape > aXShape = GetXShapeForSdrObject( static_cast<SdrObjCustomShape*>(pObj) ); + Reference< drawing::XShape > aXShape = GetXShapeForSdrObject( pCustomShape ); if ( aXShape.is() ) { Reference< drawing::XEnhancedCustomShapeDefaulter > xDefaulter( aXShape, UNO_QUERY ); |