summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-24 16:42:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-24 21:32:34 +0100
commit3a09ac34dbe61d4f675956ef9e07de75cf5cfef2 (patch)
tree36b30e9da4211d36a5b88b5430c083eeb8773013 /sfx2/source/sidebar
parent69a32bec9b7121bd56560896828e76059bb49012 (diff)
pParentWindow is the same as already available mpParentWindow
Change-Id: Ic246f21620dc1ff7a6fd91dce755ff21d0100283 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113065 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/sidebar')
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index b2e8ef949b79..3fdd1b2339dd 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -419,11 +419,10 @@ void SidebarController::NotifyResize()
return;
}
- vcl::Window* pParentWindow = mpTabBar->GetParent();
const sal_Int32 nTabBarDefaultWidth = TabBar::GetDefaultWidth() * mpTabBar->GetDPIScaleFactor();
- const sal_Int32 nWidth (pParentWindow->GetSizePixel().Width());
- const sal_Int32 nHeight (pParentWindow->GetSizePixel().Height());
+ const sal_Int32 nWidth(mpParentWindow->GetSizePixel().Width());
+ const sal_Int32 nHeight(mpParentWindow->GetSizePixel().Height());
mbIsDeckOpen = (nWidth > nTabBarDefaultWidth);