[Libreoffice-commits] core.git: include/svx svx/inc svx/source

Noel Grandin noel.grandin at collabora.co.uk
Sat Jul 29 06:50:53 UTC 2017


 include/svx/compressgraphicdialog.hxx                 |    2 +-
 include/svx/hlnkitem.hxx                              |    2 +-
 include/svx/srchdlg.hxx                               |    2 +-
 svx/inc/sdr/overlay/overlayhandle.hxx                 |    4 ++--
 svx/source/customshapes/EnhancedCustomShapeHandle.cxx |    2 +-
 svx/source/customshapes/EnhancedCustomShapeHandle.hxx |    2 +-
 svx/source/dialog/compressgraphicdialog.cxx           |    2 +-
 svx/source/dialog/srchdlg.cxx                         |    2 +-
 svx/source/engine3d/scene3d.cxx                       |    6 +++---
 svx/source/form/datanavi.cxx                          |    2 +-
 svx/source/form/tabwin.cxx                            |    2 +-
 svx/source/inc/datanavi.hxx                           |    2 +-
 svx/source/inc/tabwin.hxx                             |    2 +-
 svx/source/inc/xmlxtexp.hxx                           |    2 +-
 svx/source/inc/xmlxtimp.hxx                           |    2 +-
 svx/source/items/hlnkitem.cxx                         |    2 +-
 svx/source/sdr/overlay/overlayhandle.cxx              |    4 ++--
 svx/source/sidebar/paragraph/ParaSpacingWindow.cxx    |   14 +++++++-------
 svx/source/sidebar/paragraph/ParaSpacingWindow.hxx    |   14 +++++++-------
 svx/source/svdraw/svdcrtv.cxx                         |    4 ++--
 svx/source/tbxctrls/tbunosearchcontrollers.cxx        |    4 ++--
 svx/source/unodraw/UnoGraphicExporter.cxx             |    4 ++--
 svx/source/xml/xmlxtexp.cxx                           |    2 +-
 svx/source/xml/xmlxtimp.cxx                           |    2 +-
 24 files changed, 43 insertions(+), 43 deletions(-)

New commits:
commit 148a9f29d4bbd31a1d59cb3f078f719cf09d0d90
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Fri Jul 28 14:53:10 2017 +0200

    loplugin:constparams in svx
    
    Change-Id: Icc388182b9b7b6a6617793be09217f06bed7332d
    Reviewed-on: https://gerrit.libreoffice.org/40527
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/include/svx/compressgraphicdialog.hxx b/include/svx/compressgraphicdialog.hxx
index d36e71a54a77..03128ee74fba 100644
--- a/include/svx/compressgraphicdialog.hxx
+++ b/include/svx/compressgraphicdialog.hxx
@@ -102,7 +102,7 @@ private:
 
 public:
     CompressGraphicsDialog( vcl::Window* pParent, SdrGrafObj* pGraphicObj, SfxBindings& rBindings );
-    CompressGraphicsDialog( vcl::Window* pParent, Graphic& rGraphic, Size rViewSize100mm, tools::Rectangle& rCropRectangle, SfxBindings& rBindings );
+    CompressGraphicsDialog( vcl::Window* pParent, Graphic const & rGraphic, Size rViewSize100mm, tools::Rectangle const & rCropRectangle, SfxBindings& rBindings );
     virtual ~CompressGraphicsDialog() override;
     virtual void dispose() override;
 
diff --git a/include/svx/hlnkitem.hxx b/include/svx/hlnkitem.hxx
index ea27acf6a6c6..63b5f5e7443e 100644
--- a/include/svx/hlnkitem.hxx
+++ b/include/svx/hlnkitem.hxx
@@ -67,7 +67,7 @@ public:
                                     const OUString& rTarget, const OUString& rIntName,
                                     SvxLinkInsertMode eTyp,
                                     HyperDialogEvent nEvents = HyperDialogEvent::NONE,
-                                    SvxMacroTableDtor *pMacroTbl =nullptr );
+                                    SvxMacroTableDtor const *pMacroTbl =nullptr );
 
     inline SvxHyperlinkItem& operator=( const SvxHyperlinkItem &rItem );
 
diff --git a/include/svx/srchdlg.hxx b/include/svx/srchdlg.hxx
index d1f46e013553..287ed879d613 100644
--- a/include/svx/srchdlg.hxx
+++ b/include/svx/srchdlg.hxx
@@ -95,7 +95,7 @@ class SVX_DLLPUBLIC SvxSearchDialogWrapper : public SfxChildWindow
     VclPtr<SvxSearchDialog> dialog;
 public:
     SvxSearchDialogWrapper( vcl::Window*pParent, sal_uInt16 nId,
-                            SfxBindings* pBindings, SfxChildWinInfo* pInfo );
+                            SfxBindings* pBindings, SfxChildWinInfo const * pInfo );
 
     virtual ~SvxSearchDialogWrapper () override;
     SvxSearchDialog *getDialog () { return dialog;}
diff --git a/svx/inc/sdr/overlay/overlayhandle.hxx b/svx/inc/sdr/overlay/overlayhandle.hxx
index 64d6cd4312fd..3f76836f8577 100644
--- a/svx/inc/sdr/overlay/overlayhandle.hxx
+++ b/svx/inc/sdr/overlay/overlayhandle.hxx
@@ -29,8 +29,8 @@ protected:
 public:
     OverlayHandle(const basegfx::B2DPoint& rBasePos,
                   const basegfx::B2DSize& rSize,
-                  Color& rStrokeColor,
-                  Color& rFillColor);
+                  Color const & rStrokeColor,
+                  Color const & rFillColor);
 
     virtual ~OverlayHandle() override;
 };
diff --git a/svx/source/customshapes/EnhancedCustomShapeHandle.cxx b/svx/source/customshapes/EnhancedCustomShapeHandle.cxx
index ab4e0d93b460..813af7230cbd 100644
--- a/svx/source/customshapes/EnhancedCustomShapeHandle.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeHandle.cxx
@@ -22,7 +22,7 @@
 #include "svx/unoapi.hxx"
 
 
-EnhancedCustomShapeHandle::EnhancedCustomShapeHandle( css::uno::Reference< css::drawing::XShape >& xCustomShape, sal_uInt32 nIndex ) :
+EnhancedCustomShapeHandle::EnhancedCustomShapeHandle( css::uno::Reference< css::drawing::XShape > const & xCustomShape, sal_uInt32 nIndex ) :
     mnIndex     ( nIndex ),
     mxCustomShape ( xCustomShape )
 {
diff --git a/svx/source/customshapes/EnhancedCustomShapeHandle.hxx b/svx/source/customshapes/EnhancedCustomShapeHandle.hxx
index eca3a8c045ff..65bebb15ff5e 100644
--- a/svx/source/customshapes/EnhancedCustomShapeHandle.hxx
+++ b/svx/source/customshapes/EnhancedCustomShapeHandle.hxx
@@ -40,7 +40,7 @@ class EnhancedCustomShapeHandle : public cppu::WeakImplHelper
 
 public:
 
-            EnhancedCustomShapeHandle( css::uno::Reference< css::drawing::XShape >& xCustomShape, sal_uInt32 nIndex );
+            EnhancedCustomShapeHandle( css::uno::Reference< css::drawing::XShape > const & xCustomShape, sal_uInt32 nIndex );
     virtual ~EnhancedCustomShapeHandle() override;
 
     // XInterface
diff --git a/svx/source/dialog/compressgraphicdialog.cxx b/svx/source/dialog/compressgraphicdialog.cxx
index 00c7de098be0..d83e5e67e055 100644
--- a/svx/source/dialog/compressgraphicdialog.cxx
+++ b/svx/source/dialog/compressgraphicdialog.cxx
@@ -53,7 +53,7 @@ CompressGraphicsDialog::CompressGraphicsDialog( vcl::Window* pParent, SdrGrafObj
     Initialize();
 }
 
-CompressGraphicsDialog::CompressGraphicsDialog( vcl::Window* pParent, Graphic& rGraphic, Size rViewSize100mm, tools::Rectangle& rCropRectangle, SfxBindings& rBindings ) :
+CompressGraphicsDialog::CompressGraphicsDialog( vcl::Window* pParent, Graphic const & rGraphic, Size rViewSize100mm, tools::Rectangle const & rCropRectangle, SfxBindings& rBindings ) :
     ModalDialog       ( pParent, "CompressGraphicDialog", "svx/ui/compressgraphicdialog.ui" ),
     m_pGraphicObj     ( nullptr ),
     m_aGraphic        ( rGraphic ),
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index ae8c1223b929..f2d69f844eec 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -2336,7 +2336,7 @@ SFX_IMPL_CHILDWINDOW_WITHID(SvxSearchDialogWrapper, SID_SEARCH_DLG);
 
 SvxSearchDialogWrapper::SvxSearchDialogWrapper( vcl::Window* _pParent, sal_uInt16 nId,
                                                 SfxBindings* pBindings,
-                                                SfxChildWinInfo* pInfo )
+                                                SfxChildWinInfo const * pInfo )
     : SfxChildWindow( _pParent, nId )
     , dialog (VclPtr<SvxSearchDialog>::Create(_pParent, this, *pBindings))
 {
diff --git a/svx/source/engine3d/scene3d.cxx b/svx/source/engine3d/scene3d.cxx
index 13cdd51ee04a..3dd2dbf1f0e0 100644
--- a/svx/source/engine3d/scene3d.cxx
+++ b/svx/source/engine3d/scene3d.cxx
@@ -105,12 +105,12 @@ class Imp3DDepthRemapper
     std::vector< ImpRemap3DDepth > maVector;
 
 public:
-    explicit Imp3DDepthRemapper(E3dScene& rScene);
+    explicit Imp3DDepthRemapper(E3dScene const & rScene);
 
     sal_uInt32 RemapOrdNum(sal_uInt32 nOrdNum) const;
 };
 
-Imp3DDepthRemapper::Imp3DDepthRemapper(E3dScene& rScene)
+Imp3DDepthRemapper::Imp3DDepthRemapper(E3dScene const & rScene)
 {
     // only called when rScene.GetSubList() and nObjCount > 1L
     SdrObjList* pList = rScene.GetSubList();
@@ -243,7 +243,7 @@ sal_uInt32 E3dScene::RemapOrdNum(sal_uInt32 nNewOrdNum) const
 
         if(nObjCount > 1)
         {
-            const_cast<E3dScene*>(this)->mp3DDepthRemapper = new Imp3DDepthRemapper(const_cast<E3dScene&>(*this));
+            const_cast<E3dScene*>(this)->mp3DDepthRemapper = new Imp3DDepthRemapper(*this);
         }
     }
 
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index fceb54e286b7..80806697767e 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -1346,7 +1346,7 @@ namespace svxform
         }
     }
 
-    DataNavigatorWindow::DataNavigatorWindow(vcl::Window* pParent, SfxBindings* pBindings)
+    DataNavigatorWindow::DataNavigatorWindow(vcl::Window* pParent, SfxBindings const * pBindings)
         : Window(pParent)
         , m_pInstPage(nullptr)
         , m_pSubmissionPage(nullptr)
diff --git a/svx/source/form/tabwin.cxx b/svx/source/form/tabwin.cxx
index 46253a195713..e983f2e5234f 100644
--- a/svx/source/form/tabwin.cxx
+++ b/svx/source/form/tabwin.cxx
@@ -395,7 +395,7 @@ SFX_IMPL_FLOATINGWINDOW(FmFieldWinMgr, SID_FM_ADD_FIELD)
 
 
 FmFieldWinMgr::FmFieldWinMgr(vcl::Window* _pParent, sal_uInt16 _nId,
-               SfxBindings* _pBindings, SfxChildWinInfo* _pInfo)
+               SfxBindings* _pBindings, SfxChildWinInfo const * _pInfo)
               :SfxChildWindow(_pParent, _nId)
 {
     SetWindow( VclPtr<FmFieldWin>::Create(_pBindings, this, _pParent) );
diff --git a/svx/source/inc/datanavi.hxx b/svx/source/inc/datanavi.hxx
index 06b8e7a5a486..84249101ebb8 100644
--- a/svx/source/inc/datanavi.hxx
+++ b/svx/source/inc/datanavi.hxx
@@ -351,7 +351,7 @@ namespace svxform
         virtual Size                GetOptimalSize() const override;
 
     public:
-        DataNavigatorWindow( vcl::Window* pParent, SfxBindings* pBindings );
+        DataNavigatorWindow( vcl::Window* pParent, SfxBindings const * pBindings );
         virtual ~DataNavigatorWindow() override;
         virtual void dispose() override;
 
diff --git a/svx/source/inc/tabwin.hxx b/svx/source/inc/tabwin.hxx
index e855fc86d337..e4aafd8bca5b 100644
--- a/svx/source/inc/tabwin.hxx
+++ b/svx/source/inc/tabwin.hxx
@@ -114,7 +114,7 @@ class FmFieldWinMgr : public SfxChildWindow
 {
 public:
     FmFieldWinMgr(vcl::Window *pParent, sal_uInt16 nId,
-        SfxBindings *pBindings, SfxChildWinInfo *pInfo);
+        SfxBindings *pBindings, SfxChildWinInfo const *pInfo);
     SFX_DECL_CHILDWINDOW(FmFieldWinMgr);
 };
 
diff --git a/svx/source/inc/xmlxtexp.hxx b/svx/source/inc/xmlxtexp.hxx
index fcbf6c464486..0f8312a26310 100644
--- a/svx/source/inc/xmlxtexp.hxx
+++ b/svx/source/inc/xmlxtexp.hxx
@@ -39,7 +39,7 @@ public:
         const OUString& rFileName,
         const css::uno::Reference< css::xml::sax::XDocumentHandler > & xHandler,
         const css::uno::Reference< css::container::XNameContainer > & xTable,
-        css::uno::Reference< css::document::XGraphicObjectResolver >& xGrfResolver);
+        css::uno::Reference< css::document::XGraphicObjectResolver > const & xGrfResolver);
 
     virtual ~SvxXMLXTableExportComponent() override;
 
diff --git a/svx/source/inc/xmlxtimp.hxx b/svx/source/inc/xmlxtimp.hxx
index 0d99a646a298..c7ca90c03859 100644
--- a/svx/source/inc/xmlxtimp.hxx
+++ b/svx/source/inc/xmlxtimp.hxx
@@ -36,7 +36,7 @@ public:
     SvxXMLXTableImport(
         const css::uno::Reference< css::uno::XComponentContext >& rContext,
         const css::uno::Reference< css::container::XNameContainer > & rTable,
-        css::uno::Reference< css::document::XGraphicObjectResolver >& rGrfResolver);
+        css::uno::Reference< css::document::XGraphicObjectResolver > const & rGrfResolver);
 
     virtual ~SvxXMLXTableImport() throw () override;
 
diff --git a/svx/source/items/hlnkitem.cxx b/svx/source/items/hlnkitem.cxx
index 2627e738b05d..86381a25417e 100644
--- a/svx/source/items/hlnkitem.cxx
+++ b/svx/source/items/hlnkitem.cxx
@@ -206,7 +206,7 @@ SvxHyperlinkItem::SvxHyperlinkItem( const SvxHyperlinkItem& rHyperlinkItem ):
 
 SvxHyperlinkItem::SvxHyperlinkItem( sal_uInt16 _nWhich, const OUString& rName, const OUString& rURL,
                                     const OUString& rTarget, const OUString& rIntName, SvxLinkInsertMode eTyp,
-                                    HyperDialogEvent nEvents, SvxMacroTableDtor *pMacroTbl ):
+                                    HyperDialogEvent nEvents, SvxMacroTableDtor const *pMacroTbl ):
     SfxPoolItem (_nWhich),
     sName       (rName),
     sURL        (rURL),
diff --git a/svx/source/sdr/overlay/overlayhandle.cxx b/svx/source/sdr/overlay/overlayhandle.cxx
index 0c89165e4634..450a11d9c1bb 100644
--- a/svx/source/sdr/overlay/overlayhandle.cxx
+++ b/svx/source/sdr/overlay/overlayhandle.cxx
@@ -46,8 +46,8 @@ primitive2d::Primitive2DContainer OverlayHandle::createOverlayObjectPrimitive2DS
 
 OverlayHandle::OverlayHandle(const B2DPoint& rBasePos,
                              const B2DSize& rSize,
-                             Color& rStrokeColor,
-                             Color& rFillColor)
+                             Color const & rStrokeColor,
+                             Color const & rFillColor)
     : OverlayObjectWithBasePosition(rBasePos, rFillColor)
     , maSize(rSize)
     , maStrokeColor(rStrokeColor)
diff --git a/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx b/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx
index e7fa12525c32..f854752163a5 100644
--- a/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx
+++ b/svx/source/sidebar/paragraph/ParaSpacingWindow.cxx
@@ -34,7 +34,7 @@ using namespace svx;
 
 // ParaULSpacingWindow
 
-ParaULSpacingWindow::ParaULSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame)
+ParaULSpacingWindow::ParaULSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame)
     : VclVBox(pParent)
     , m_eUnit(MapUnit::MapTwip)
 {
@@ -107,7 +107,7 @@ IMPL_LINK_NOARG(ParaULSpacingWindow, ModifySpacingHdl, Edit&, void)
 
 // ParaAboveSpacingWindow
 
-ParaAboveSpacingWindow::ParaAboveSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame)
+ParaAboveSpacingWindow::ParaAboveSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame)
     : ParaULSpacingWindow(pParent, xFrame)
 {
     m_pAboveContainer->Show();
@@ -116,7 +116,7 @@ ParaAboveSpacingWindow::ParaAboveSpacingWindow(vcl::Window* pParent, css::uno::R
 
 // ParaBelowSpacingWindow
 
-ParaBelowSpacingWindow::ParaBelowSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame)
+ParaBelowSpacingWindow::ParaBelowSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame)
     : ParaULSpacingWindow(pParent, xFrame)
 {
     m_pAboveContainer->Hide();
@@ -125,7 +125,7 @@ ParaBelowSpacingWindow::ParaBelowSpacingWindow(vcl::Window* pParent, css::uno::R
 
 // ParaLRSpacingWindow
 
-ParaLRSpacingWindow::ParaLRSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame)
+ParaLRSpacingWindow::ParaLRSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame)
     : VclVBox(pParent)
     , m_eUnit(MapUnit::MapTwip)
 {
@@ -294,7 +294,7 @@ IMPL_LINK_NOARG(ParaLRSpacingWindow, ModifySpacingHdl, Edit&, void)
 
 // ParaLeftSpacingWindow
 
-ParaLeftSpacingWindow::ParaLeftSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame)
+ParaLeftSpacingWindow::ParaLeftSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame)
     : ParaLRSpacingWindow(pParent, xFrame)
 {
     m_pBeforeContainer->Show();
@@ -304,7 +304,7 @@ ParaLeftSpacingWindow::ParaLeftSpacingWindow(vcl::Window* pParent, css::uno::Ref
 
 // ParaRightSpacingWindow
 
-ParaRightSpacingWindow::ParaRightSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame)
+ParaRightSpacingWindow::ParaRightSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame)
     : ParaLRSpacingWindow(pParent, xFrame)
 {
     m_pBeforeContainer->Hide();
@@ -314,7 +314,7 @@ ParaRightSpacingWindow::ParaRightSpacingWindow(vcl::Window* pParent, css::uno::R
 
 // ParaFirstLineSpacingWindow
 
-ParaFirstLineSpacingWindow::ParaFirstLineSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame)
+ParaFirstLineSpacingWindow::ParaFirstLineSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame)
     : ParaLRSpacingWindow(pParent, xFrame)
 {
     m_pBeforeContainer->Hide();
diff --git a/svx/source/sidebar/paragraph/ParaSpacingWindow.hxx b/svx/source/sidebar/paragraph/ParaSpacingWindow.hxx
index ecce558671f6..5d0496414bd2 100644
--- a/svx/source/sidebar/paragraph/ParaSpacingWindow.hxx
+++ b/svx/source/sidebar/paragraph/ParaSpacingWindow.hxx
@@ -45,7 +45,7 @@ public:
     void SetUnit(FieldUnit eUnit);
 
 protected:
-    ParaULSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame);
+    ParaULSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
     VclPtr<SvxRelativeField> m_pAboveSpacing;
     VclPtr<SvxRelativeField> m_pBelowSpacing;
     VclPtr<VclHBox> m_pAboveContainer;
@@ -59,13 +59,13 @@ protected:
 class ParaAboveSpacingWindow : public ParaULSpacingWindow
 {
 public:
-    explicit ParaAboveSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame);
+    explicit ParaAboveSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
 };
 
 class ParaBelowSpacingWindow : public ParaULSpacingWindow
 {
 public:
-    explicit ParaBelowSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame);
+    explicit ParaBelowSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
 };
 
 class ParaLRSpacingWindow : public VclVBox,
@@ -80,7 +80,7 @@ public:
     void SetContext(const vcl::EnumContext& eContext);
 
 protected:
-    ParaLRSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame);
+    ParaLRSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
 
     VclPtr<SvxRelativeField> m_pBeforeSpacing;
     VclPtr<SvxRelativeField> m_pAfterSpacing;
@@ -99,19 +99,19 @@ protected:
 class ParaLeftSpacingWindow : public ParaLRSpacingWindow
 {
 public:
-    explicit ParaLeftSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame);
+    explicit ParaLeftSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
 };
 
 class ParaRightSpacingWindow : public ParaLRSpacingWindow
 {
 public:
-    explicit ParaRightSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame);
+    explicit ParaRightSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
 };
 
 class ParaFirstLineSpacingWindow : public ParaLRSpacingWindow
 {
 public:
-    explicit ParaFirstLineSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame>& xFrame);
+    explicit ParaFirstLineSpacingWindow(vcl::Window* pParent, css::uno::Reference<css::frame::XFrame> const & xFrame);
 };
 
 }
diff --git a/svx/source/svdraw/svdcrtv.cxx b/svx/source/svdraw/svdcrtv.cxx
index 2495c472c974..0e3aed9a2813 100644
--- a/svx/source/svdraw/svdcrtv.cxx
+++ b/svx/source/svdraw/svdcrtv.cxx
@@ -52,7 +52,7 @@ class ImplConnectMarkerOverlay
     const SdrObject&                                mrObject;
 
 public:
-    ImplConnectMarkerOverlay(const SdrCreateView& rView, SdrObject& rObject);
+    ImplConnectMarkerOverlay(const SdrCreateView& rView, SdrObject const & rObject);
 
     // The OverlayObjects are cleared using the destructor of OverlayObjectList.
     // That destructor calls clear() at the list which removes all objects from the
@@ -61,7 +61,7 @@ public:
     const SdrObject& GetTargetObject() const { return mrObject; }
 };
 
-ImplConnectMarkerOverlay::ImplConnectMarkerOverlay(const SdrCreateView& rView, SdrObject& rObject)
+ImplConnectMarkerOverlay::ImplConnectMarkerOverlay(const SdrCreateView& rView, SdrObject const & rObject)
 :   mrObject(rObject)
 {
     basegfx::B2DPolyPolygon aB2DPolyPolygon(rObject.TakeXorPoly());
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
index 40b53da62354..30b3ef99621b 100644
--- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx
+++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
@@ -149,7 +149,7 @@ class FindTextFieldControl : public ComboBox
 {
 public:
     FindTextFieldControl( vcl::Window* pParent, WinBits nStyle,
-        css::uno::Reference< css::frame::XFrame >& xFrame,
+        css::uno::Reference< css::frame::XFrame > const & xFrame,
         const css::uno::Reference< css::uno::XComponentContext >& xContext );
 
     virtual bool PreNotify( NotifyEvent& rNEvt ) override;
@@ -164,7 +164,7 @@ private:
 };
 
 FindTextFieldControl::FindTextFieldControl( vcl::Window* pParent, WinBits nStyle,
-    css::uno::Reference< css::frame::XFrame >& xFrame,
+    css::uno::Reference< css::frame::XFrame > const & xFrame,
     const css::uno::Reference< css::uno::XComponentContext >& xContext) :
     ComboBox( pParent, nStyle ),
     m_xFrame(xFrame),
diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx
index 1fe32e50283f..f395f256d704 100644
--- a/svx/source/unodraw/UnoGraphicExporter.cxx
+++ b/svx/source/unodraw/UnoGraphicExporter.cxx
@@ -108,10 +108,10 @@ namespace {
         Fraction    maScaleX;
         Fraction    maScaleY;
 
-        explicit ExportSettings( SdrModel* pDoc );
+        explicit ExportSettings( SdrModel const * pDoc );
     };
 
-    ExportSettings::ExportSettings( SdrModel* pDoc )
+    ExportSettings::ExportSettings( SdrModel const * pDoc )
     : mnWidth( 0 )
     , mnHeight( 0 )
     , mbExportOnlyBackground( false )
diff --git a/svx/source/xml/xmlxtexp.cxx b/svx/source/xml/xmlxtexp.cxx
index a3c4bb3c97c7..2cb4fc05232f 100644
--- a/svx/source/xml/xmlxtexp.cxx
+++ b/svx/source/xml/xmlxtexp.cxx
@@ -138,7 +138,7 @@ SvxXMLXTableExportComponent::SvxXMLXTableExportComponent(
     const OUString& rFileName,
     const uno::Reference<xml::sax::XDocumentHandler> & rHandler,
     const uno::Reference<container::XNameContainer >& xTable,
-    uno::Reference<document::XGraphicObjectResolver >& xGrfResolver )
+    uno::Reference<document::XGraphicObjectResolver > const & xGrfResolver )
 :   SvXMLExport(rContext, "", rFileName, rHandler, nullptr, FUNIT_100TH_MM, SvXMLExportFlags::NONE),
     mxTable( xTable )
 {
diff --git a/svx/source/xml/xmlxtimp.cxx b/svx/source/xml/xmlxtimp.cxx
index 9e62941dcb31..1faf0d17d407 100644
--- a/svx/source/xml/xmlxtimp.cxx
+++ b/svx/source/xml/xmlxtimp.cxx
@@ -288,7 +288,7 @@ void SvxXMLTableImportContext::importBitmap( const uno::Reference< XAttributeLis
 SvxXMLXTableImport::SvxXMLXTableImport(
     const css::uno::Reference< css::uno::XComponentContext >& rContext,
     const uno::Reference< XNameContainer > & rTable,
-    uno::Reference< XGraphicObjectResolver >& xGrfResolver )
+    uno::Reference< XGraphicObjectResolver > const & xGrfResolver )
 :   SvXMLImport(rContext, "", SvXMLImportFlags::NONE),
     mrTable( rTable )
 {


More information about the Libreoffice-commits mailing list