summaryrefslogtreecommitdiff
path: root/svx/source
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 /svx/source
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 'svx/source')
-rw-r--r--svx/source/form/fmshell.cxx2
-rw-r--r--svx/source/inc/StylesPreviewWindow.hxx4
-rw-r--r--svx/source/svdraw/MediaShellHelpers.cxx4
-rw-r--r--svx/source/svdraw/svdpntv.cxx4
-rw-r--r--svx/source/tbxctrls/StylesPreviewWindow.cxx4
-rw-r--r--svx/source/toolbars/fontworkbar.cxx2
6 files changed, 10 insertions, 10 deletions
diff --git a/svx/source/form/fmshell.cxx b/svx/source/form/fmshell.cxx
index 9bbe292ffe90..6ef4d39549df 100644
--- a/svx/source/form/fmshell.cxx
+++ b/svx/source/form/fmshell.cxx
@@ -1265,7 +1265,7 @@ namespace
}
-void FmFormShell::ToggleControlFocus( const SdrUnoObj& i_rUnoObject, const SdrView& i_rView, OutputDevice& i_rDevice ) const
+void FmFormShell::ToggleControlFocus( const SdrUnoObj& i_rUnoObject, const SdrView& i_rView, const OutputDevice& i_rDevice ) const
{
try
{
diff --git a/svx/source/inc/StylesPreviewWindow.hxx b/svx/source/inc/StylesPreviewWindow.hxx
index c638f29d87e5..aaddd1ca3ea1 100644
--- a/svx/source/inc/StylesPreviewWindow.hxx
+++ b/svx/source/inc/StylesPreviewWindow.hxx
@@ -97,7 +97,7 @@ protected:
public:
StylesPreviewWindow_Base(
- weld::Builder& xBuilder, std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
+ weld::Builder& xBuilder, const std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider);
~StylesPreviewWindow_Base();
@@ -113,7 +113,7 @@ class StylesPreviewWindow_Impl final : public InterimItemWindow, public StylesPr
{
public:
StylesPreviewWindow_Impl(
- vcl::Window* pParent, std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
+ vcl::Window* pParent, const std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider);
~StylesPreviewWindow_Impl();
diff --git a/svx/source/svdraw/MediaShellHelpers.cxx b/svx/source/svdraw/MediaShellHelpers.cxx
index 4ea2f2325c2d..752a6882c038 100644
--- a/svx/source/svdraw/MediaShellHelpers.cxx
+++ b/svx/source/svdraw/MediaShellHelpers.cxx
@@ -29,7 +29,7 @@
namespace svx::MediaShellHelpers
{
-void GetState(SdrMarkView* pSdrView, SfxItemSet& rSet)
+void GetState(const SdrMarkView* pSdrView, SfxItemSet& rSet)
{
if (!pSdrView)
return;
@@ -64,7 +64,7 @@ void GetState(SdrMarkView* pSdrView, SfxItemSet& rSet)
}
}
-const ::avmedia::MediaItem* Execute(SdrMarkView* pSdrView, SfxRequest const& rReq)
+const ::avmedia::MediaItem* Execute(const SdrMarkView* pSdrView, SfxRequest const& rReq)
{
if (!pSdrView)
return nullptr;
diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx
index 3ae23ab2b478..3a9fa3970cb8 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -706,7 +706,7 @@ void SdrPaintView::EndDrawLayers(SdrPaintWindow& rPaintWindow, bool bPaintFormLa
}
}
-void SdrPaintView::UpdateDrawLayersRegion(OutputDevice* pOut, const vcl::Region& rReg)
+void SdrPaintView::UpdateDrawLayersRegion(const OutputDevice* pOut, const vcl::Region& rReg)
{
SdrPaintWindow* pPaintWindow = FindPaintWindow(*pOut);
OSL_ENSURE(pPaintWindow, "SdrPaintView::UpdateDrawLayersRegion: No SdrPaintWindow (!)");
@@ -724,7 +724,7 @@ void SdrPaintView::UpdateDrawLayersRegion(OutputDevice* pOut, const vcl::Region&
}
}
-vcl::Region SdrPaintView::OptimizeDrawLayersRegion(OutputDevice* pOut, const vcl::Region& rReg, bool bDisableIntersect)
+vcl::Region SdrPaintView::OptimizeDrawLayersRegion(const OutputDevice* pOut, const vcl::Region& rReg, bool bDisableIntersect)
{
// #i74769# check if pOut is a win and has a ClipRegion. If Yes, the Region
// rReg may be made more granular (fine) with using it. Normally, rReg
diff --git a/svx/source/tbxctrls/StylesPreviewWindow.cxx b/svx/source/tbxctrls/StylesPreviewWindow.cxx
index 2051e2479a84..4eed7e8352ba 100644
--- a/svx/source/tbxctrls/StylesPreviewWindow.cxx
+++ b/svx/source/tbxctrls/StylesPreviewWindow.cxx
@@ -353,7 +353,7 @@ void StyleItemController::DrawText(vcl::RenderContext& rRenderContext)
}
StylesPreviewWindow_Base::StylesPreviewWindow_Base(
- weld::Builder& xBuilder, std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
+ weld::Builder& xBuilder, const std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider)
: m_xDispatchProvider(xDispatchProvider)
, m_xStylesView(xBuilder.weld_icon_view("stylesview"))
@@ -477,7 +477,7 @@ void StylesPreviewWindow_Base::UpdateStylesList()
}
StylesPreviewWindow_Impl::StylesPreviewWindow_Impl(
- vcl::Window* pParent, std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
+ vcl::Window* pParent, const std::vector<std::pair<OUString, OUString>>& aDefaultStyles,
const css::uno::Reference<css::frame::XDispatchProvider>& xDispatchProvider)
: InterimItemWindow(pParent, "svx/ui/stylespreview.ui", "ApplyStyleBox", true,
reinterpret_cast<sal_uInt64>(SfxViewShell::Current()))
diff --git a/svx/source/toolbars/fontworkbar.cxx b/svx/source/toolbars/fontworkbar.cxx
index 7ec966ab4f09..888e2d2f43a9 100644
--- a/svx/source/toolbars/fontworkbar.cxx
+++ b/svx/source/toolbars/fontworkbar.cxx
@@ -205,7 +205,7 @@ FontworkBar::~FontworkBar()
}
namespace svx {
-bool checkForFontWork( SdrObject* pObj )
+bool checkForFontWork( const SdrObject* pObj )
{
static constexpr OUStringLiteral sTextPath = u"TextPath";
bool bFound = false;