diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-10 19:00:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-11 09:15:42 +0200 |
commit | 2da435922f9c1fcf52eb0c1eb3d6f73581e9f793 (patch) | |
tree | 3d6fef2b96557a76b35eeae48f2df10a0a0511c5 /sfx2/source/sidebar | |
parent | 7823684cb6fbe752dc64300799c5d102f61e0b70 (diff) |
loplugin:constantparam
Change-Id: Ia11bf93768d5f722b7fe62df15f24809cb7e7f04
Reviewed-on: https://gerrit.libreoffice.org/60280
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/sidebar')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index d90bd56b77de..d16195447222 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -1106,14 +1106,14 @@ IMPL_LINK(SidebarController, OnMenuItemSelected, Menu*, pMenu, bool) return true; } -void SidebarController::RequestCloseDeck(bool bFocusMenuTab) +void SidebarController::RequestCloseDeck() { mbIsDeckRequestedOpen = false; UpdateDeckOpenState(); if (mpCurrentDeck.get()) { - sal_Int32 nIndex(bFocusMenuTab ? 0 : mpTabBar->GetDeckIndexForId(mpCurrentDeck->GetId())); + sal_Int32 nIndex(mpTabBar->GetDeckIndexForId(mpCurrentDeck->GetId())); maFocusManager.GrabFocusButton(nIndex); } else |