summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-11 08:42:15 +0200
committerNoel Grandin <noel@peralex.com>2015-08-11 09:48:17 +0200
commite5da350e4dd9b175c2f50cb392b23a805dac9a27 (patch)
tree1abf5f6a2342a09895ade05a92a3550897c14e38 /sfx2/source/sidebar
parentc85cda1eb461d1b27b49ad746e2b2299908b9e75 (diff)
loplugin: defaultparams
Change-Id: Ibff26c023655d36f0fa71ead399a6116c2988607
Diffstat (limited to 'sfx2/source/sidebar')
-rw-r--r--sfx2/source/sidebar/AccessibleTitleBar.cxx2
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx6
-rw-r--r--sfx2/source/sidebar/TabBar.cxx2
-rw-r--r--sfx2/source/sidebar/TitleBar.cxx2
4 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/sidebar/AccessibleTitleBar.cxx b/sfx2/source/sidebar/AccessibleTitleBar.cxx
index 0d2597ba9659..e0f68a4a5354 100644
--- a/sfx2/source/sidebar/AccessibleTitleBar.cxx
+++ b/sfx2/source/sidebar/AccessibleTitleBar.cxx
@@ -32,7 +32,7 @@ namespace sfx2 { namespace sidebar {
Reference<accessibility::XAccessible> AccessibleTitleBar::Create (TitleBar& rTitleBar)
{
- rTitleBar.GetComponentInterface(true);
+ rTitleBar.GetComponentInterface();
VCLXWindow* pWindow = rTitleBar.GetWindowPeer();
if (pWindow != NULL)
return new Accessible(new AccessibleTitleBar(pWindow));
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index aac2906bead4..f99be6c82f63 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -930,7 +930,7 @@ void SidebarController::ShowPopupMenu (
{
// Don't allow the currently visible deck to be disabled.
pCustomizationMenu->InsertItem(nSubMenuIndex, iItem->msDisplayName, MenuItemBits::RADIOCHECK);
- pCustomizationMenu->CheckItem(nSubMenuIndex, true);
+ pCustomizationMenu->CheckItem(nSubMenuIndex);
}
else
{
@@ -954,7 +954,7 @@ void SidebarController::ShowPopupMenu (
pMenu->InsertItem(MID_CUSTOMIZATION, SFX2_RESSTR(STRING_CUSTOMIZATION));
pMenu->SetPopupMenu(MID_CUSTOMIZATION, pCustomizationMenu);
- pMenu->RemoveDisabledEntries(false, false);
+ pMenu->RemoveDisabledEntries(false);
return pMenu;
}
@@ -976,7 +976,7 @@ IMPL_LINK(SidebarController, OnMenuItemSelected, Menu*, pMenu)
break;
case MID_LOCK_TASK_PANEL:
- mpParentWindow->SetFloatingMode(false);
+ mpParentWindow->SetFloatingMode();
break;
case MID_RESTORE_DEFAULT:
diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index 29a4896368ef..d04f5b42d92e 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -226,7 +226,7 @@ void TabBar::HighlightDeck (const OUString& rsDeckId)
for (ItemContainer::iterator iItem(maItems.begin()); iItem != maItems.end(); ++iItem)
{
if (iItem->msDeckId.equals(rsDeckId))
- iItem->mpButton->Check(true);
+ iItem->mpButton->Check();
else
iItem->mpButton->Check(false);
}
diff --git a/sfx2/source/sidebar/TitleBar.cxx b/sfx2/source/sidebar/TitleBar.cxx
index eb362af32e8f..caf606b2a66a 100644
--- a/sfx2/source/sidebar/TitleBar.cxx
+++ b/sfx2/source/sidebar/TitleBar.cxx
@@ -100,7 +100,7 @@ void TitleBar::setPosSizePixel (long nX, long nY, long nWidth, long nHeight, Pos
// Place the toolbox.
const sal_Int32 nToolBoxWidth (maToolBox->GetItemPosRect(0).GetWidth());
- maToolBox->setPosSizePixel(nWidth - nToolBoxWidth,0, nToolBoxWidth, nHeight, PosSizeFlags::PosSize);
+ maToolBox->setPosSizePixel(nWidth - nToolBoxWidth,0, nToolBoxWidth, nHeight);
maToolBox->Show();
}