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 /sw | |
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 'sw')
-rw-r--r-- | sw/source/core/frmedt/feshview.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/docvw/edtwin2.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx index c4145ddde43d..af1a729eb446 100644 --- a/sw/source/core/frmedt/feshview.cxx +++ b/sw/source/core/frmedt/feshview.cxx @@ -2980,7 +2980,7 @@ void SwFEShell::CreateDefaultShape( SdrObjKind eSdrObjectKind, const tools::Rect aAttr.Put(makeSdrCircEndAngleItem(0_deg100)); pObj->SetMergedItemSet(aAttr); } - else if(dynamic_cast<const SdrPathObj*>( pObj) != nullptr) + else if(auto pPathObj = dynamic_cast<SdrPathObj*>( pObj)) { basegfx::B2DPolyPolygon aPoly; @@ -3076,7 +3076,7 @@ void SwFEShell::CreateDefaultShape( SdrObjKind eSdrObjectKind, const tools::Rect break; } - static_cast<SdrPathObj*>(pObj)->SetPathPoly(aPoly); + pPathObj->SetPathPoly(aPoly); } else if(auto pMeasureObj = dynamic_cast<SdrMeasureObj*>( pObj)) { diff --git a/sw/source/uibase/docvw/edtwin2.cxx b/sw/source/uibase/docvw/edtwin2.cxx index f3b975dfb546..645878cd855f 100644 --- a/sw/source/uibase/docvw/edtwin2.cxx +++ b/sw/source/uibase/docvw/edtwin2.cxx @@ -336,7 +336,7 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt) } else { - sText = static_cast<const SwGetRefField*>(pField)->GetSetRefName(); + sText = pRefField->GetSetRefName(); } } break; |