From d7824bf16898d8cb776420e0c2bff82e6df61b86 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 21 Jun 2017 11:07:15 +0200 Subject: loplugin:unusedfields in sfx2 part2 Change-Id: I227b643641250d47ac6b2218f57ddb231765960e Reviewed-on: https://gerrit.libreoffice.org/39038 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/dialog/dockwin.cxx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'sfx2/source/dialog/dockwin.cxx') diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx index cdddb2b19be8..a8c7143bbf18 100644 --- a/sfx2/source/dialog/dockwin.cxx +++ b/sfx2/source/dialog/dockwin.cxx @@ -390,17 +390,16 @@ friend class SfxDockingWindow; // The following members are only valid in the time from startDocking to // EndDocking: - bool bEndDocked; Size aSplitSize; long nHorizontalSize; long nVerticalSize; - sal_uInt16 nLine; - sal_uInt16 nPos; - sal_uInt16 nDockLine; - sal_uInt16 nDockPos; + sal_uInt16 nLine; + sal_uInt16 nPos; + sal_uInt16 nDockLine; + sal_uInt16 nDockPos; bool bNewLine; bool bDockingPrevented; - OString aWinState; + OString aWinState; explicit SfxDockingWindow_Impl(SfxDockingWindow *pBase); SfxChildAlignment GetLastAlignment() const @@ -419,7 +418,6 @@ SfxDockingWindow_Impl::SfxDockingWindow_Impl(SfxDockingWindow* pBase) ,bConstructed(false) ,pSplitWin(nullptr) ,bSplitable(true) - ,bEndDocked(false) ,nHorizontalSize(0) ,nVerticalSize(0) ,nLine(0) @@ -801,9 +799,7 @@ void SfxDockingWindow::EndDocking( const tools::Rectangle& rRect, bool bFloatMod } else { - pImpl->bEndDocked = true; DockingWindow::EndDocking(rRect, bFloatMode); - pImpl->bEndDocked = false; } SetAlignment( IsFloatingMode() ? SfxChildAlignment::NOALIGNMENT : pImpl->GetDockAlignment() ); -- cgit