summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-18 18:31:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-18 21:18:29 +0200
commit18f202011661397d10ca4c2fa28fcf57b62221b0 (patch)
tree5a867f5bee6205e13172bb5c61315552d5dc9870 /sfx2/source/sidebar
parent2e74c1107bc8422ee7a819722f3f0a366127330f (diff)
loplugin:constparams
Change-Id: Ic7410f836e584df45101e78e345c8b3c8d355e09 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120680 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/sidebar')
-rw-r--r--sfx2/source/sidebar/DeckLayouter.cxx8
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/sidebar/DeckLayouter.cxx b/sfx2/source/sidebar/DeckLayouter.cxx
index 54f100cd71a8..0fc874c2e367 100644
--- a/sfx2/source/sidebar/DeckLayouter.cxx
+++ b/sfx2/source/sidebar/DeckLayouter.cxx
@@ -61,7 +61,7 @@ namespace {
sal_Int32 mnWeight;
bool mbShowTitleBar;
- LayoutItem(std::shared_ptr<Panel>& pPanel)
+ LayoutItem(const std::shared_ptr<Panel>& pPanel)
: mpPanel(pPanel)
, maLayoutSize(0, 0, 0)
, mnDistributedHeight(0)
@@ -91,7 +91,7 @@ namespace {
::std::vector<LayoutItem>& rLayoutItems,
const LayoutMode eMode_);
tools::Rectangle PlaceDeckTitle (
- SidebarDockingWindow* pDockingWindow,
+ const SidebarDockingWindow* pDockingWindow,
DeckTitleBar& rTitleBar,
const tools::Rectangle& rAvailableSpace);
tools::Rectangle PlaceVerticalScrollBar (
@@ -105,7 +105,7 @@ namespace {
}
void DeckLayouter::LayoutDeck (
- SidebarDockingWindow* pDockingWindow,
+ const SidebarDockingWindow* pDockingWindow,
const tools::Rectangle& rContentArea,
sal_Int32& rMinimalWidth,
sal_Int32& rMinimalHeight,
@@ -490,7 +490,7 @@ void DistributeHeights (
}
tools::Rectangle PlaceDeckTitle(
- SidebarDockingWindow* pDockingWindow,
+ const SidebarDockingWindow* pDockingWindow,
DeckTitleBar& rDeckTitleBar,
const tools::Rectangle& rAvailableSpace)
{
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index c03b2a96acdb..b399a1a415d1 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -1621,7 +1621,7 @@ bool SidebarController::hasChartContextCurrently() const
return GetCurrentContext().msApplication == "com.sun.star.chart2.ChartDocument";
}
-sfx2::sidebar::SidebarController* SidebarController::GetSidebarControllerForView(SfxViewShell* pViewShell)
+sfx2::sidebar::SidebarController* SidebarController::GetSidebarControllerForView(const SfxViewShell* pViewShell)
{
if (!pViewShell)
return nullptr;