diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-11 13:30:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-11 13:53:24 +0000 |
commit | 7f8b1b58f48e5593441b29d723eac8dc396c55ed (patch) | |
tree | 2d97d2eb7aaf76566fee08cd83ef41818f3a2d0d /sfx2 | |
parent | 83490325567d37dc55cd76ada5ec9819d7c51633 (diff) |
coverity#440865 Logically dead code
seeing as we return early if eChild == SFX_CHILDWIN_OBJECTBAR
then the reset of the code that depends on that cannot happen
Change-Id: I1566ad9d5ef428e3c9e248df08b65d56bb83553e
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/workwin.cxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx index 7af2d8108501..d9ebe588ab73 100644 --- a/sfx2/source/appl/workwin.cxx +++ b/sfx2/source/appl/workwin.cxx @@ -1792,7 +1792,6 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild, Rectangle aOuterRect( GetTopRect_Impl() ); aOuterRect.SetPos( pWorkWin->OutputToScreenPixel( aOuterRect.TopLeft() )); Rectangle aInnerRect( aOuterRect ); - sal_Bool bTbx = (eChild == SFX_CHILDWIN_OBJECTBAR); // The current affected window is included in the calculation of // the inner rectangle! @@ -1810,12 +1809,6 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild, aInnerRect.Top() += pCli->aSize.Height(); break; - case SFX_ALIGN_TOOLBOXTOP: - // Toolbox has priority, if no higher Position - if ( bTbx && i <= nPos) - aInnerRect.Top() += pCli->aSize.Height(); - break; - case SFX_ALIGN_HIGHESTTOP: // Always performed first aInnerRect.Top() += pCli->aSize.Height(); @@ -1832,12 +1825,6 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild, aInnerRect.Bottom() -= pCli->aSize.Height(); break; - case SFX_ALIGN_TOOLBOXBOTTOM: - // Toolbox has priority, if no higher Position - if ( bTbx && i <= nPos) - aInnerRect.Bottom() -= pCli->aSize.Height(); - break; - case SFX_ALIGN_LOWESTBOTTOM: // Always performed first aInnerRect.Bottom() -= pCli->aSize.Height(); @@ -1854,12 +1841,6 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild, aInnerRect.Left() += pCli->aSize.Width(); break; - case SFX_ALIGN_TOOLBOXLEFT: - // Toolboxes come always last - if (bTbx && i <= nPos) - aInnerRect.Left() += pCli->aSize.Width(); - break; - case SFX_ALIGN_FIRSTLEFT: // Always performed first aInnerRect.Left() += pCli->aSize.Width(); @@ -1875,12 +1856,6 @@ void SfxWorkWindow::ConfigChild_Impl(SfxChildIdentifier eChild, aInnerRect.Right() -= pCli->aSize.Width(); break; - case SFX_ALIGN_TOOLBOXRIGHT: - // Toolboxes come always last - if (bTbx && i <= nPos) - aInnerRect.Right() -= pCli->aSize.Width(); - break; - case SFX_ALIGN_FIRSTRIGHT: // Is only counted if it is the current window if (i == nPos) |