diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-20 15:55:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-21 11:05:05 +0200 |
commit | 1f2ff4a0a31c7919bc6d4e0ac63024252f0bd889 (patch) | |
tree | 3c9747c3141c1078718fe8ebb0e8e8587fbe3418 /sd | |
parent | 7aca5ee1192b45d05a601946a5c784b8c5bd61bd (diff) |
loplugin:redundantcast small improvement
Change-Id: I2c96b367138b94d6178a3c4a0f83049f13a04f82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154679
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/animobjs.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/titledockwin.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx index 9abb892e037c..0174855e1825 100644 --- a/sd/source/ui/dlg/animobjs.cxx +++ b/sd/source/ui/dlg/animobjs.cxx @@ -516,7 +516,7 @@ void AnimationWindow::UpdateControl(bool const bDisableCtrls) ScopedVclPtrInstance< VirtualDevice > pVD; ::tools::Rectangle aObjRect( pObject->GetCurrentBoundRect() ); Size aObjSize( aObjRect.GetSize() ); - Point aOrigin( Point( -aObjRect.Left(), -aObjRect.Top() ) ); + Point aOrigin( -aObjRect.Left(), -aObjRect.Top() ); MapMode aMap( pVD->GetMapMode() ); aMap.SetMapUnit( MapUnit::Map100thMM ); aMap.SetOrigin( aOrigin ); diff --git a/sd/source/ui/dlg/titledockwin.cxx b/sd/source/ui/dlg/titledockwin.cxx index 5a3f04c70f30..0550f05d2f8b 100644 --- a/sd/source/ui/dlg/titledockwin.cxx +++ b/sd/source/ui/dlg/titledockwin.cxx @@ -155,7 +155,7 @@ namespace sd int nInnerBottom = nOuterBottom - m_aBorder.Bottom() + 1; // Paint title bar background. - ::tools::Rectangle aTitleBarBox(::tools::Rectangle(nOuterLeft, 0, nOuterRight, nInnerTop - 1)); + ::tools::Rectangle aTitleBarBox(nOuterLeft, 0, nOuterRight, nInnerTop - 1); rRenderContext.DrawRect(aTitleBarBox); if (nInnerLeft > nOuterLeft) |