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

Noel Grandin noel.grandin at collabora.co.uk
Fri Aug 4 18:21:22 UTC 2017


 sw/inc/SwAppletImpl.hxx                  |    2 +-
 sw/inc/shellio.hxx                       |    2 +-
 sw/inc/unochart.hxx                      |    4 ++--
 sw/inc/unocrsrhelper.hxx                 |   10 +++++-----
 sw/inc/unodraw.hxx                       |    2 +-
 sw/inc/unotbl.hxx                        |    8 ++++----
 sw/inc/unotextbodyhf.hxx                 |    2 +-
 sw/inc/unotextrange.hxx                  |    2 +-
 sw/inc/viewsh.hxx                        |    8 ++++----
 sw/source/core/inc/SwUndoFmt.hxx         |   20 ++++++++++----------
 sw/source/core/inc/UndoBookmark.hxx      |    2 +-
 sw/source/core/inc/UndoCore.hxx          |    4 ++--
 sw/source/core/inc/UndoInsert.hxx        |    2 +-
 sw/source/core/inc/UndoOverwrite.hxx     |    4 ++--
 sw/source/core/inc/ptqueue.hxx           |    2 +-
 sw/source/core/inc/rolbck.hxx            |    2 +-
 sw/source/core/inc/unoevent.hxx          |    2 +-
 sw/source/core/inc/viewimp.hxx           |    6 +++---
 sw/source/core/text/atrhndl.hxx          |    2 +-
 sw/source/core/text/atrstck.cxx          |    2 +-
 sw/source/core/undo/SwUndoFmt.cxx        |   20 ++++++++++----------
 sw/source/core/undo/rolbck.cxx           |    2 +-
 sw/source/core/undo/unbkmk.cxx           |    2 +-
 sw/source/core/undo/undobj.cxx           |    4 ++--
 sw/source/core/undo/undobj1.cxx          |    2 +-
 sw/source/core/undo/unfmco.cxx           |    2 +-
 sw/source/core/undo/unins.cxx            |    2 +-
 sw/source/core/undo/unovwr.cxx           |    4 ++--
 sw/source/core/unocore/unochart.cxx      |    4 ++--
 sw/source/core/unocore/unocrsrhelper.cxx |    8 ++++----
 sw/source/core/unocore/unodraw.cxx       |    2 +-
 sw/source/core/unocore/unoevent.cxx      |    2 +-
 sw/source/core/unocore/unoobj.cxx        |    4 ++--
 sw/source/core/unocore/unoobj2.cxx       |    4 ++--
 sw/source/core/unocore/unoportenum.cxx   |    4 ++--
 sw/source/core/unocore/unostyle.cxx      |    4 ++--
 sw/source/core/unocore/unotbl.cxx        |   24 ++++++++++++------------
 sw/source/core/unocore/unotext.cxx       |    4 ++--
 sw/source/core/view/viewimp.cxx          |    6 +++---
 sw/source/core/view/viewsh.cxx           |    6 +++---
 sw/source/core/view/vprint.cxx           |    4 ++--
 sw/source/filter/basflt/fltini.cxx       |    2 +-
 sw/source/filter/basflt/shellio.cxx      |    2 +-
 sw/source/filter/html/htmlcss1.cxx       |    2 +-
 sw/source/filter/html/htmlctxt.cxx       |    2 +-
 sw/source/filter/html/swhtml.hxx         |    2 +-
 sw/source/filter/inc/fltini.hxx          |    2 +-
 sw/source/filter/inc/fltshell.hxx        |    2 +-
 48 files changed, 108 insertions(+), 108 deletions(-)

New commits:
commit 5ecb947b3ad67300bae934dc011823d1989449b6
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Fri Aug 4 16:23:37 2017 +0200

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

diff --git a/sw/inc/SwAppletImpl.hxx b/sw/inc/SwAppletImpl.hxx
index b0fdbbf77364..aaa600b2453e 100644
--- a/sw/inc/SwAppletImpl.hxx
+++ b/sw/inc/SwAppletImpl.hxx
@@ -48,7 +48,7 @@ class SwApplet_Impl
 public:
     static SwHtmlOptType GetOptionType( const OUString& rName, bool bApplet );
     SwApplet_Impl( SfxItemPool& rPool );
-    SwApplet_Impl( SfxItemSet& rSet ): aItemSet ( rSet) {}
+    SwApplet_Impl( SfxItemSet const & rSet ): aItemSet ( rSet) {}
     ~SwApplet_Impl();
     void CreateApplet( const OUString& rCode, const OUString& rName,
                        bool bMayScript, const OUString& rCodeBase,
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx
index bbace938d039..1ebc33e4e0a8 100644
--- a/sw/inc/shellio.hxx
+++ b/sw/inc/shellio.hxx
@@ -496,7 +496,7 @@ class SW_DLLPUBLIC SwWriter
     bool bWriteAll;
 
 public:
-    ErrCode Write( WriterRef& rxWriter, const OUString* = nullptr);
+    ErrCode Write( WriterRef const & rxWriter, const OUString* = nullptr);
 
     SwWriter( SvStream&, SwCursorShell &, bool bWriteAll = false );
     SwWriter( SvStream&, SwDoc & );
diff --git a/sw/inc/unochart.hxx b/sw/inc/unochart.hxx
index 6b57b32ac708..4769254de14e 100644
--- a/sw/inc/unochart.hxx
+++ b/sw/inc/unochart.hxx
@@ -179,8 +179,8 @@ public:
     virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
     virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(  ) override;
 
-    void        AddDataSequence( const SwTable &rTable, css::uno::Reference< css::chart2::data::XDataSequence > &rxDataSequence );
-    void        RemoveDataSequence( const SwTable &rTable, css::uno::Reference< css::chart2::data::XDataSequence > &rxDataSequence );
+    void        AddDataSequence( const SwTable &rTable, css::uno::Reference< css::chart2::data::XDataSequence > const &rxDataSequence );
+    void        RemoveDataSequence( const SwTable &rTable, css::uno::Reference< css::chart2::data::XDataSequence > const &rxDataSequence );
 
     // will send modified events for all data-sequences of the table
     void        InvalidateTable( const SwTable *pTable );
diff --git a/sw/inc/unocrsrhelper.hxx b/sw/inc/unocrsrhelper.hxx
index 482a1380e537..50ab906d2385 100644
--- a/sw/inc/unocrsrhelper.hxx
+++ b/sw/inc/unocrsrhelper.hxx
@@ -78,7 +78,7 @@ namespace SwUnoCursorHelper
     };
 
     css::uno::Reference< css::text::XTextContent >
-        GetNestedTextContent(SwTextNode & rTextNode, sal_Int32 const nIndex,
+        GetNestedTextContent(SwTextNode const & rTextNode, sal_Int32 const nIndex,
             bool const bParent);
 
     bool                    getCursorPropertyValue(const SfxItemPropertySimpleEntry& rEntry
@@ -87,7 +87,7 @@ namespace SwUnoCursorHelper
                                         , css::beans::PropertyState& eState
                                         , const SwTextNode* pNode = nullptr );
 
-    void                        GetCurPageStyle(SwPaM& rPaM, OUString &rString);
+    void                    GetCurPageStyle(SwPaM const & rPaM, OUString &rString);
 
     inline bool             IsStartOfPara(SwPaM& rUnoCursor)
                                         { return rUnoCursor.GetPoint()->nContent == 0;}
@@ -113,7 +113,7 @@ namespace SwUnoCursorHelper
                                     SwPaM& rPam);
 
     sal_Int16                   IsNodeNumStart(
-                                    SwPaM& rPam,
+                                    SwPaM const & rPam,
                                     css::beans::PropertyState& eState);
 
     bool    DocInsertStringSplitCR(  SwDoc &rDoc,
@@ -121,7 +121,7 @@ namespace SwUnoCursorHelper
                     const bool bForceExpandHints );
     /// @throws css::lang::IllegalArgumentException
     /// @throws css::uno::RuntimeException
-    void    makeRedline( SwPaM& rPaM, const OUString& RedlineType,
+    void    makeRedline( SwPaM const & rPaM, const OUString& RedlineType,
             const css::uno::Sequence< css::beans::PropertyValue >& RedlineProperties );
 
     /// @throws css::lang::IllegalArgumentException
@@ -210,7 +210,7 @@ namespace SwUnoCursorHelper
     /// @throws css::lang::WrappedTargetException
     /// @throws css::uno::RuntimeException
     css::uno::Any  GetPropertyDefault(
-            SwPaM & rPaM,
+            SwPaM const & rPaM,
             const SfxItemPropertySet & rPropSet,
             const OUString & rPropertyName);
 
diff --git a/sw/inc/unodraw.hxx b/sw/inc/unodraw.hxx
index 132d74eb8234..4132b3157ad1 100644
--- a/sw/inc/unodraw.hxx
+++ b/sw/inc/unodraw.hxx
@@ -264,7 +264,7 @@ public:
     const css::uno::Reference< css::uno::XAggregation >& GetAggregationInterface() {return xShapeAgg;}
 
     // helper
-    static void AddExistingShapeToFormat( SdrObject& _rObj );
+    static void AddExistingShapeToFormat( SdrObject const & _rObj );
 };
 
 class SwXGroupShape :
diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx
index 7b06cc143e6c..4bb30e0de931 100644
--- a/sw/inc/unotbl.hxx
+++ b/sw/inc/unotbl.hxx
@@ -186,7 +186,7 @@ public:
     virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
     virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
 
-    static SwTableLine* FindLine(SwTable* pTable, SwTableLine* pLine);
+    static SwTableLine* FindLine(SwTable* pTable, SwTableLine const * pLine);
 };
 
 typedef cppu::WeakImplHelper<
@@ -201,7 +201,7 @@ class SW_DLLPUBLIC SwXTextTableCursor : public SwXTextTableCursor_Base
     const SfxItemPropertySet*   m_pPropSet;
 
 public:
-    SwXTextTableCursor(SwFrameFormat* pFormat, SwTableBox* pBox);
+    SwXTextTableCursor(SwFrameFormat* pFormat, SwTableBox const * pBox);
     SwXTextTableCursor(SwFrameFormat& rTableFormat,
                         const SwTableCursor* pTableSelection);
     DECLARE_XINTERFACE()
@@ -375,13 +375,13 @@ private:
     class Impl;
     ::sw::UnoImplPtr<Impl> m_pImpl;
 
-    SwXCellRange(const sw::UnoCursorPointer& pCursor, SwFrameFormat& rFrameFormat, SwRangeDescriptor& rDesc);
+    SwXCellRange(const sw::UnoCursorPointer& pCursor, SwFrameFormat& rFrameFormat, SwRangeDescriptor const & rDesc);
     virtual ~SwXCellRange() override;
 
 public:
     static ::rtl::Reference<SwXCellRange> CreateXCellRange(
             const sw::UnoCursorPointer& pCursor, SwFrameFormat& rFrameFormat,
-            SwRangeDescriptor& rDesc);
+            SwRangeDescriptor const & rDesc);
 
     static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId();
 
diff --git a/sw/inc/unotextbodyhf.hxx b/sw/inc/unotextbodyhf.hxx
index bb10b191d373..91fcaab8b5e7 100644
--- a/sw/inc/unotextbodyhf.hxx
+++ b/sw/inc/unotextbodyhf.hxx
@@ -122,7 +122,7 @@ public:
 
     static css::uno::Reference< css::text::XText >
         CreateXHeadFootText(SwFrameFormat & rHeadFootFormat, const bool bIsHeader);
-    static bool IsXHeadFootText(SwClient *const pClient);
+    static bool IsXHeadFootText(SwClient const *const pClient);
 
     // XInterface
     virtual css::uno::Any SAL_CALL queryInterface(
diff --git a/sw/inc/unotextrange.hxx b/sw/inc/unotextrange.hxx
index 90b7851b6864..59d41f80360c 100644
--- a/sw/inc/unotextrange.hxx
+++ b/sw/inc/unotextrange.hxx
@@ -108,7 +108,7 @@ private:
 
 public:
 
-    SwXTextRange(SwPaM& rPam,
+    SwXTextRange(SwPaM const & rPam,
             const css::uno::Reference< css::text::XText > & xParent,
             const enum RangePosition eRange = RANGE_IN_TEXT);
     // only for RANGE_IS_TABLE
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index 1678e26eea3e..f88f70c0579a 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -351,7 +351,7 @@ public:
 
     // Change of all page descriptors.
     void   ChgAllPageOrientation( Orientation eOri );
-    void   ChgAllPageSize( Size &rSz );
+    void   ChgAllPageSize( Size const &rSz );
 
     // Printing of one page.
     // bIsPDFExport == true is: do PDF Export (no printing!)
@@ -439,9 +439,9 @@ public:
     static ShellResource* GetShellRes();
 
     static void           SetCareWin( vcl::Window* pNew );
-    static vcl::Window*   GetCareWin(SwViewShell& rVSh)
+    static vcl::Window*   GetCareWin(SwViewShell const & rVSh)
                           { return (*mpCareWindow.get()) ? mpCareWindow.get()->get() : CareChildWin(rVSh); }
-    static vcl::Window*   CareChildWin(SwViewShell& rVSh);
+    static vcl::Window*   CareChildWin(SwViewShell const & rVSh);
 
     SfxViewShell   *GetSfxViewShell() const { return mpSfxViewShell; }
     void           SetSfxViewShell(SfxViewShell *pNew) { mpSfxViewShell = pNew; }
@@ -508,7 +508,7 @@ public:
     void InvalidateAccessibleFocus();
 
     // Apply Accessiblity options.
-    void ApplyAccessiblityOptions(SvtAccessibilityOptions& rAccessibilityOptions);
+    void ApplyAccessiblityOptions(SvtAccessibilityOptions const & rAccessibilityOptions);
 
     /** invalidate CONTENT_FLOWS_FROM/_TO relation for paragraphs
 
diff --git a/sw/source/core/inc/SwUndoFmt.hxx b/sw/source/core/inc/SwUndoFmt.hxx
index ec25edb9bd49..201bd2aa6463 100644
--- a/sw/source/core/inc/SwUndoFmt.hxx
+++ b/sw/source/core/inc/SwUndoFmt.hxx
@@ -42,7 +42,7 @@ protected:
     bool bAuto;
 
 public:
-    SwUndoFormatCreate(SwUndoId nUndoId, SwFormat * pNew, SwFormat * pDerivedFrom,
+    SwUndoFormatCreate(SwUndoId nUndoId, SwFormat * pNew, SwFormat const * pDerivedFrom,
                     SwDoc * pDoc);
     virtual ~SwUndoFormatCreate() override;
 
@@ -67,7 +67,7 @@ protected:
     bool bAuto;
 
 public:
-    SwUndoFormatDelete(SwUndoId nUndoId, SwFormat * pOld, SwDoc * pDoc);
+    SwUndoFormatDelete(SwUndoId nUndoId, SwFormat const * pOld, SwDoc * pDoc);
     virtual ~SwUndoFormatDelete() override;
 
     virtual void UndoImpl( ::sw::UndoRedoContext & ) override;
@@ -103,7 +103,7 @@ public:
 class SwUndoTextFormatCollCreate : public SwUndoFormatCreate
 {
 public:
-    SwUndoTextFormatCollCreate(SwTextFormatColl * pNew, SwTextFormatColl * pDerivedFrom,
+    SwUndoTextFormatCollCreate(SwTextFormatColl * pNew, SwTextFormatColl const * pDerivedFrom,
                            SwDoc * pDoc);
 
     virtual SwFormat * Create(SwFormat * pDerivedFrom) override;
@@ -114,7 +114,7 @@ public:
 class SwUndoTextFormatCollDelete : public SwUndoFormatDelete
 {
 public:
-    SwUndoTextFormatCollDelete(SwTextFormatColl * pOld, SwDoc * pDoc);
+    SwUndoTextFormatCollDelete(SwTextFormatColl const * pOld, SwDoc * pDoc);
 
     virtual SwFormat * Create(SwFormat * pDerivedFrom) override;
     virtual void Delete(SwFormat * pFormat) override;
@@ -124,14 +124,14 @@ public:
 class SwUndoCondTextFormatCollCreate : public SwUndoTextFormatCollCreate
 {
 public:
-    SwUndoCondTextFormatCollCreate(SwConditionTextFormatColl * pNew, SwTextFormatColl * pDerivedFrom, SwDoc * pDoc);
+    SwUndoCondTextFormatCollCreate(SwConditionTextFormatColl * pNew, SwTextFormatColl const * pDerivedFrom, SwDoc * pDoc);
     virtual SwFormat * Create(SwFormat * pDerivedFrom) override;
 };
 
 class SwUndoCondTextFormatCollDelete : public SwUndoTextFormatCollDelete
 {
 public:
-    SwUndoCondTextFormatCollDelete(SwTextFormatColl * pOld, SwDoc * pDoc);
+    SwUndoCondTextFormatCollDelete(SwTextFormatColl const * pOld, SwDoc * pDoc);
     virtual SwFormat * Create(SwFormat * pDerivedFrom) override;
 };
 
@@ -148,7 +148,7 @@ public:
 class SwUndoCharFormatCreate : public SwUndoFormatCreate
 {
 public:
-    SwUndoCharFormatCreate(SwCharFormat * pNew, SwCharFormat * pDerivedFrom,
+    SwUndoCharFormatCreate(SwCharFormat * pNew, SwCharFormat const * pDerivedFrom,
                            SwDoc * pDoc);
 
     virtual SwFormat * Create(SwFormat * pDerivedFrom) override;
@@ -159,7 +159,7 @@ public:
 class SwUndoCharFormatDelete : public SwUndoFormatDelete
 {
 public:
-    SwUndoCharFormatDelete(SwCharFormat * pOld, SwDoc * pDoc);
+    SwUndoCharFormatDelete(SwCharFormat const * pOld, SwDoc * pDoc);
 
     virtual SwFormat * Create(SwFormat * pDerivedFrom) override;
     virtual void Delete(SwFormat * pFormat) override;
@@ -179,7 +179,7 @@ public:
 class SwUndoFrameFormatCreate : public SwUndoFormatCreate
 {
 public:
-    SwUndoFrameFormatCreate(SwFrameFormat * pNew, SwFrameFormat * pDerivedFrom,
+    SwUndoFrameFormatCreate(SwFrameFormat * pNew, SwFrameFormat const * pDerivedFrom,
                        SwDoc * pDoc);
 
     virtual SwFormat * Create(SwFormat * pDerivedFrom) override;
@@ -190,7 +190,7 @@ public:
 class SwUndoFrameFormatDelete : public SwUndoFormatDelete
 {
 public:
-    SwUndoFrameFormatDelete(SwFrameFormat * pOld, SwDoc * pDoc);
+    SwUndoFrameFormatDelete(SwFrameFormat const * pOld, SwDoc * pDoc);
 
     virtual SwFormat * Create(SwFormat * pDerivedFrom) override;
     virtual void Delete(SwFormat * pFormat) override;
diff --git a/sw/source/core/inc/UndoBookmark.hxx b/sw/source/core/inc/UndoBookmark.hxx
index dce0b4642f08..eb32662c92d8 100644
--- a/sw/source/core/inc/UndoBookmark.hxx
+++ b/sw/source/core/inc/UndoBookmark.hxx
@@ -90,7 +90,7 @@ public:
 
 private:
     virtual SwRewriter GetRewriter() const override;
-    static void Rename( ::sw::UndoRedoContext &, const OUString& sFrom, const OUString& sTo );
+    static void Rename( ::sw::UndoRedoContext const &, const OUString& sFrom, const OUString& sTo );
     virtual void UndoImpl( ::sw::UndoRedoContext & ) override;
     virtual void RedoImpl( ::sw::UndoRedoContext & ) override;
 };
diff --git a/sw/source/core/inc/UndoCore.hxx b/sw/source/core/inc/UndoCore.hxx
index ced3e9c754a0..441320aa94cb 100644
--- a/sw/source/core/inc/UndoCore.hxx
+++ b/sw/source/core/inc/UndoCore.hxx
@@ -52,7 +52,7 @@ public:
 
     ~SwRedlineSaveData();
 
-    void RedlineToDoc( SwPaM& rPam );
+    void RedlineToDoc( SwPaM const & rPam );
 
     SwNodeIndex* GetMvSttIdx() const
     {
@@ -154,7 +154,7 @@ class SwUndoFormatColl : public SwUndo, private SwUndRng
     // the nodes before the format has been applied.
     const bool mbResetListAttrs;
 
-    void DoSetFormatColl(SwDoc & rDoc, SwPaM & rPaM);
+    void DoSetFormatColl(SwDoc & rDoc, SwPaM const & rPaM);
 
 public:
     SwUndoFormatColl( const SwPaM&, SwFormatColl*,
diff --git a/sw/source/core/inc/UndoInsert.hxx b/sw/source/core/inc/UndoInsert.hxx
index 7ee2266e8508..a8b27a9340ec 100644
--- a/sw/source/core/inc/UndoInsert.hxx
+++ b/sw/source/core/inc/UndoInsert.hxx
@@ -216,7 +216,7 @@ public:
         { if( LTYPE_OBJECT != eType ) NODE.nNode = nNd; }
 
     void SetUndoKeep()  { bUndoKeep = true; }
-    void SetFlys( SwFrameFormat& rOldFly, SfxItemSet& rChgSet, SwFrameFormat& rNewFly );
+    void SetFlys( SwFrameFormat& rOldFly, SfxItemSet const & rChgSet, SwFrameFormat& rNewFly );
     void SetDrawObj( SdrLayerID nLayerId );
 };
 
diff --git a/sw/source/core/inc/UndoOverwrite.hxx b/sw/source/core/inc/UndoOverwrite.hxx
index d5040bc823da..ff55c06ea32a 100644
--- a/sw/source/core/inc/UndoOverwrite.hxx
+++ b/sw/source/core/inc/UndoOverwrite.hxx
@@ -72,7 +72,7 @@ class SwUndoTransliterate : public SwUndo, public SwUndRng
     std::vector< UndoTransliterate_Data * >    aChanges;
     TransliterationFlags nType;
 
-    void DoTransliterate(SwDoc & rDoc, SwPaM & rPam);
+    void DoTransliterate(SwDoc & rDoc, SwPaM const & rPam);
 
 public:
     SwUndoTransliterate( const SwPaM& rPam,
@@ -85,7 +85,7 @@ public:
     virtual void RepeatImpl( ::sw::RepeatContext & ) override;
 
     void AddChanges( SwTextNode& rTNd, sal_Int32 nStart, sal_Int32 nLen,
-                     css::uno::Sequence <sal_Int32>& rOffsets );
+                     css::uno::Sequence <sal_Int32> const & rOffsets );
     bool HasData() const { return aChanges.size() > 0; }
 };
 
diff --git a/sw/source/core/inc/ptqueue.hxx b/sw/source/core/inc/ptqueue.hxx
index 6c578989bfde..bc041859c1d2 100644
--- a/sw/source/core/inc/ptqueue.hxx
+++ b/sw/source/core/inc/ptqueue.hxx
@@ -48,7 +48,7 @@ public:
     static SwQueuedPaint *s_pPaintQueue;
 
     static void Add( SwViewShell *pSh, const SwRect &rNew );
-    static void Remove( SwViewShell *pSh );
+    static void Remove( SwViewShell const *pSh );
     static void Repaint();
 };
 
diff --git a/sw/source/core/inc/rolbck.hxx b/sw/source/core/inc/rolbck.hxx
index 391e1251aa36..88b629cfed5d 100644
--- a/sw/source/core/inc/rolbck.hxx
+++ b/sw/source/core/inc/rolbck.hxx
@@ -356,7 +356,7 @@ public:
     // helper methods for recording attribute in History
     // used by Undo classes (Delete/Overwrite/Inserts)
     void CopyAttr(
-        SwpHints* pHts,
+        SwpHints const * pHts,
         const sal_uLong nNodeIdx,
         const sal_Int32 nStart,
         const sal_Int32 nEnd,
diff --git a/sw/source/core/inc/unoevent.hxx b/sw/source/core/inc/unoevent.hxx
index 7e28be9cdcc1..4c6cbdc26193 100644
--- a/sw/source/core/inc/unoevent.hxx
+++ b/sw/source/core/inc/unoevent.hxx
@@ -44,7 +44,7 @@ public:
     void copyMacrosIntoINetFormat(SwFormatINetFormat& aFormat);
 
     void copyMacrosFromNameReplace(
-        css::uno::Reference<css::container::XNameReplace> & xReplace);
+        css::uno::Reference<css::container::XNameReplace> const & xReplace);
 };
 
 // SwEventDescriptor for
diff --git a/sw/source/core/inc/viewimp.hxx b/sw/source/core/inc/viewimp.hxx
index 44cb77816fbe..19594409ba0b 100644
--- a/sw/source/core/inc/viewimp.hxx
+++ b/sw/source/core/inc/viewimp.hxx
@@ -88,7 +88,7 @@ class SwViewShellImp
 
     SwPagePreviewLayout* m_pPagePreviewLayout;
 
-    void SetFirstVisPage(OutputDevice* pRenderContext); // Recalculate the first visible Page
+    void SetFirstVisPage(OutputDevice const * pRenderContext); // Recalculate the first visible Page
 
     void StartAction();         // Show handle and hide
     void EndAction();           // Called by SwViewShell::ImplXXXAction
@@ -145,8 +145,8 @@ public:
     Color GetRetoucheColor() const;
 
     /// Management of the first visible Page
-    const SwPageFrame *GetFirstVisPage(OutputDevice* pRenderContext) const;
-          SwPageFrame *GetFirstVisPage(OutputDevice* pRenderContext);
+    const SwPageFrame *GetFirstVisPage(OutputDevice const * pRenderContext) const;
+          SwPageFrame *GetFirstVisPage(OutputDevice const * pRenderContext);
     void SetFirstVisPageInvalid() { m_bFirstPageInvalid = true; }
 
     bool AddPaintRect( const SwRect &rRect );
diff --git a/sw/source/core/text/atrhndl.hxx b/sw/source/core/text/atrhndl.hxx
index be83c9f67d30..23975bc71e04 100644
--- a/sw/source/core/text/atrhndl.hxx
+++ b/sw/source/core/text/atrhndl.hxx
@@ -131,7 +131,7 @@ public:
     inline void ResetFont( SwFont& rFnt ) const;
     inline const SwFont* GetFont() const;
 
-    void GetDefaultAscentAndHeight(SwViewShell* pShell,
+    void GetDefaultAscentAndHeight(SwViewShell const * pShell,
                                    OutputDevice const & rOut,
                                    sal_uInt16& nAscent,
                                    sal_uInt16& nHeight) const;
diff --git a/sw/source/core/text/atrstck.cxx b/sw/source/core/text/atrstck.cxx
index fc46c87536d8..cb257da198e7 100644
--- a/sw/source/core/text/atrstck.cxx
+++ b/sw/source/core/text/atrstck.cxx
@@ -895,7 +895,7 @@ void SwAttrHandler::FontChg(const SfxPoolItem& rItem, SwFont& rFnt, bool bPush )
 }
 
 /// Takes the default font and calculated the ascent and height
-void SwAttrHandler::GetDefaultAscentAndHeight( SwViewShell* pShell, OutputDevice const & rOut,
+void SwAttrHandler::GetDefaultAscentAndHeight( SwViewShell const * pShell, OutputDevice const & rOut,
                                                sal_uInt16& nAscent, sal_uInt16& nHeight ) const
 {
     OSL_ENSURE( pFnt, "No font available for GetDefaultAscentAndHeight" );
diff --git a/sw/source/core/undo/SwUndoFmt.cxx b/sw/source/core/undo/SwUndoFmt.cxx
index 7464330bc407..c9287f5f0c62 100644
--- a/sw/source/core/undo/SwUndoFmt.cxx
+++ b/sw/source/core/undo/SwUndoFmt.cxx
@@ -30,7 +30,7 @@
 #include <strings.hrc>
 
 SwUndoFormatCreate::SwUndoFormatCreate
-(SwUndoId nUndoId, SwFormat * _pNew, SwFormat * _pDerivedFrom, SwDoc * _pDoc)
+(SwUndoId nUndoId, SwFormat * _pNew, SwFormat const * _pDerivedFrom, SwDoc * _pDoc)
     : SwUndo(nUndoId, _pDoc), pNew(_pNew),
       pDoc(_pDoc), pNewSet(nullptr), nId(0), bAuto(false)
 {
@@ -95,7 +95,7 @@ SwRewriter SwUndoFormatCreate::GetRewriter() const
 }
 
 SwUndoFormatDelete::SwUndoFormatDelete
-(SwUndoId nUndoId, SwFormat * _pOld, SwDoc * _pDoc)
+(SwUndoId nUndoId, SwFormat const * _pOld, SwDoc * _pDoc)
     : SwUndo(nUndoId, _pDoc),
       pDoc(_pDoc), sOldName(_pOld->GetName()),
       aOldSet(_pOld->GetAttrSet())
@@ -189,7 +189,7 @@ SwRewriter SwUndoRenameFormat::GetRewriter() const
 }
 
 SwUndoTextFormatCollCreate::SwUndoTextFormatCollCreate
-(SwTextFormatColl * _pNew, SwTextFormatColl * _pDerivedFrom, SwDoc * _pDoc)
+(SwTextFormatColl * _pNew, SwTextFormatColl const * _pDerivedFrom, SwDoc * _pDoc)
     : SwUndoFormatCreate(SwUndoId::TXTFMTCOL_CREATE, _pNew, _pDerivedFrom, _pDoc)
 {
 }
@@ -209,7 +209,7 @@ SwFormat * SwUndoTextFormatCollCreate::Find(const OUString & rName) const
     return pDoc->FindTextFormatCollByName(rName);
 }
 
-SwUndoTextFormatCollDelete::SwUndoTextFormatCollDelete(SwTextFormatColl * _pOld,
+SwUndoTextFormatCollDelete::SwUndoTextFormatCollDelete(SwTextFormatColl const * _pOld,
                                                SwDoc * _pDoc)
     : SwUndoFormatDelete(SwUndoId::TXTFMTCOL_DELETE, _pOld, _pDoc)
 {
@@ -231,7 +231,7 @@ SwFormat * SwUndoTextFormatCollDelete::Find(const OUString & rName) const
 }
 
 SwUndoCondTextFormatCollCreate::SwUndoCondTextFormatCollCreate(SwConditionTextFormatColl *_pNew,
-    SwTextFormatColl *_pDerivedFrom, SwDoc *_pDoc)
+    SwTextFormatColl const *_pDerivedFrom, SwDoc *_pDoc)
     : SwUndoTextFormatCollCreate(_pNew, _pDerivedFrom, _pDoc)
 {
 }
@@ -241,7 +241,7 @@ SwFormat * SwUndoCondTextFormatCollCreate::Create(SwFormat * pDerivedFrom)
     return pDoc->MakeCondTextFormatColl(sNewName, static_cast<SwTextFormatColl *>(pDerivedFrom), true);
 }
 
-SwUndoCondTextFormatCollDelete::SwUndoCondTextFormatCollDelete(SwTextFormatColl * _pOld,
+SwUndoCondTextFormatCollDelete::SwUndoCondTextFormatCollDelete(SwTextFormatColl const * _pOld,
                                                        SwDoc * _pDoc)
     : SwUndoTextFormatCollDelete(_pOld, _pDoc)
 {
@@ -265,7 +265,7 @@ SwFormat * SwUndoRenameFormatColl::Find(const OUString & rName) const
 }
 
 SwUndoCharFormatCreate::SwUndoCharFormatCreate(SwCharFormat * pNewFormat,
-                                         SwCharFormat * pDerivedFrom,
+                                         SwCharFormat const * pDerivedFrom,
                                          SwDoc * pDocument)
     : SwUndoFormatCreate(SwUndoId::CHARFMT_CREATE, pNewFormat, pDerivedFrom, pDocument)
 {
@@ -286,7 +286,7 @@ SwFormat * SwUndoCharFormatCreate::Find(const OUString & rName) const
     return pDoc->FindCharFormatByName(rName);
 }
 
-SwUndoCharFormatDelete::SwUndoCharFormatDelete(SwCharFormat * pOld, SwDoc * pDocument)
+SwUndoCharFormatDelete::SwUndoCharFormatDelete(SwCharFormat const * pOld, SwDoc * pDocument)
     : SwUndoFormatDelete(SwUndoId::CHARFMT_DELETE, pOld, pDocument)
 {
 }
@@ -319,7 +319,7 @@ SwFormat * SwUndoRenameCharFormat::Find(const OUString & rName) const
 }
 
 SwUndoFrameFormatCreate::SwUndoFrameFormatCreate(SwFrameFormat * pNewFormat,
-                                       SwFrameFormat * pDerivedFrom,
+                                       SwFrameFormat const * pDerivedFrom,
                                        SwDoc * pDocument)
     : SwUndoFormatCreate(SwUndoId::FRMFMT_CREATE, pNewFormat, pDerivedFrom, pDocument)
 {
@@ -340,7 +340,7 @@ SwFormat * SwUndoFrameFormatCreate::Find(const OUString & rName) const
     return pDoc->FindFrameFormatByName(rName);
 }
 
-SwUndoFrameFormatDelete::SwUndoFrameFormatDelete(SwFrameFormat * pOld, SwDoc * pDocument)
+SwUndoFrameFormatDelete::SwUndoFrameFormatDelete(SwFrameFormat const * pOld, SwDoc * pDocument)
     : SwUndoFormatDelete(SwUndoId::FRMFMT_DELETE, pOld, pDocument)
 {
 }
diff --git a/sw/source/core/undo/rolbck.cxx b/sw/source/core/undo/rolbck.cxx
index 0693c708af13..39c0955b9e9d 100644
--- a/sw/source/core/undo/rolbck.cxx
+++ b/sw/source/core/undo/rolbck.cxx
@@ -1141,7 +1141,7 @@ void SwHistory::CopyFormatAttr(
 }
 
 void SwHistory::CopyAttr(
-    SwpHints* pHts,
+    SwpHints const * pHts,
     const sal_uLong nNodeIdx,
     const sal_Int32 nStart,
     const sal_Int32 nEnd,
diff --git a/sw/source/core/undo/unbkmk.cxx b/sw/source/core/undo/unbkmk.cxx
index a6245b5db1a9..a503bc69c8a7 100644
--- a/sw/source/core/undo/unbkmk.cxx
+++ b/sw/source/core/undo/unbkmk.cxx
@@ -128,7 +128,7 @@ SwRewriter SwUndoRenameBookmark::GetRewriter() const
     return aRewriter;
 }
 
-void SwUndoRenameBookmark::Rename(::sw::UndoRedoContext & rContext, const OUString& sFrom, const OUString& sTo)
+void SwUndoRenameBookmark::Rename(::sw::UndoRedoContext const & rContext, const OUString& sFrom, const OUString& sTo)
 {
     IDocumentMarkAccess* const pMarkAccess = rContext.GetDoc().getIDocumentMarkAccess();
     IDocumentMarkAccess::const_iterator_t ppBkmk = pMarkAccess->findMark(sFrom);
diff --git a/sw/source/core/undo/undobj.cxx b/sw/source/core/undo/undobj.cxx
index 37efb8eb318e..5c02c2b854e9 100644
--- a/sw/source/core/undo/undobj.cxx
+++ b/sw/source/core/undo/undobj.cxx
@@ -190,7 +190,7 @@ SwUndo::~SwUndo()
 class UndoRedoRedlineGuard
 {
 public:
-    UndoRedoRedlineGuard(::sw::UndoRedoContext & rContext, SwUndo & rUndo)
+    UndoRedoRedlineGuard(::sw::UndoRedoContext const & rContext, SwUndo const & rUndo)
         : m_rRedlineAccess(rContext.GetDoc().getIDocumentRedlineAccess())
         , m_eMode(m_rRedlineAccess.GetRedlineFlags())
     {
@@ -1367,7 +1367,7 @@ SwRedlineSaveData::~SwRedlineSaveData()
 {
 }
 
-void SwRedlineSaveData::RedlineToDoc( SwPaM& rPam )
+void SwRedlineSaveData::RedlineToDoc( SwPaM const & rPam )
 {
     SwDoc& rDoc = *rPam.GetDoc();
     SwRangeRedline* pRedl = new SwRangeRedline( *this, rPam );
diff --git a/sw/source/core/undo/undobj1.cxx b/sw/source/core/undo/undobj1.cxx
index 8011e77dd031..e17bc136d832 100644
--- a/sw/source/core/undo/undobj1.cxx
+++ b/sw/source/core/undo/undobj1.cxx
@@ -372,7 +372,7 @@ OUString SwUndoInsLayFormat::GetComment() const
 }
 
 static SwUndoId
-lcl_GetSwUndoId(SwFrameFormat *const pFrameFormat)
+lcl_GetSwUndoId(SwFrameFormat const *const pFrameFormat)
 {
     if (RES_DRAWFRMFMT != pFrameFormat->Which())
     {
diff --git a/sw/source/core/undo/unfmco.cxx b/sw/source/core/undo/unfmco.cxx
index 056ab4080c72..019e7b7694c2 100644
--- a/sw/source/core/undo/unfmco.cxx
+++ b/sw/source/core/undo/unfmco.cxx
@@ -67,7 +67,7 @@ void SwUndoFormatColl::RepeatImpl(::sw::RepeatContext & rContext)
     DoSetFormatColl(rContext.GetDoc(), rContext.GetRepeatPaM());
 }
 
-void SwUndoFormatColl::DoSetFormatColl(SwDoc & rDoc, SwPaM & rPaM)
+void SwUndoFormatColl::DoSetFormatColl(SwDoc & rDoc, SwPaM const & rPaM)
 {
     // Only one TextFrameColl can be applied to a section, thus request only in
     // this array.
diff --git a/sw/source/core/undo/unins.cxx b/sw/source/core/undo/unins.cxx
index 458b99a7f86a..049339c8d5bd 100644
--- a/sw/source/core/undo/unins.cxx
+++ b/sw/source/core/undo/unins.cxx
@@ -1035,7 +1035,7 @@ SwRewriter SwUndoInsertLabel::CreateRewriter(const OUString &rStr)
     return aRewriter;
 }
 
-void SwUndoInsertLabel::SetFlys( SwFrameFormat& rOldFly, SfxItemSet& rChgSet,
+void SwUndoInsertLabel::SetFlys( SwFrameFormat& rOldFly, SfxItemSet const & rChgSet,
                                 SwFrameFormat& rNewFly )
 {
     if( LTYPE_OBJECT == eType || LTYPE_DRAW == eType )
diff --git a/sw/source/core/undo/unovwr.cxx b/sw/source/core/undo/unovwr.cxx
index 1d11753ac4f7..475e9ec3f1af 100644
--- a/sw/source/core/undo/unovwr.cxx
+++ b/sw/source/core/undo/unovwr.cxx
@@ -374,7 +374,7 @@ void SwUndoTransliterate::RepeatImpl(::sw::RepeatContext & rContext)
     DoTransliterate(rContext.GetDoc(), rContext.GetRepeatPaM());
 }
 
-void SwUndoTransliterate::DoTransliterate(SwDoc & rDoc, SwPaM & rPam)
+void SwUndoTransliterate::DoTransliterate(SwDoc & rDoc, SwPaM const & rPam)
 {
     utl::TransliterationWrapper aTrans( ::comphelper::getProcessComponentContext(), nType );
     rDoc.getIDocumentContentOperations().TransliterateText( rPam, aTrans );
@@ -382,7 +382,7 @@ void SwUndoTransliterate::DoTransliterate(SwDoc & rDoc, SwPaM & rPam)
 
 void SwUndoTransliterate::AddChanges( SwTextNode& rTNd,
                     sal_Int32 nStart, sal_Int32 nLen,
-                    uno::Sequence <sal_Int32>& rOffsets )
+                    uno::Sequence <sal_Int32> const & rOffsets )
 {
     long nOffsLen = rOffsets.getLength();
     UndoTransliterate_Data* pNew = new UndoTransliterate_Data(
diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx
index 841a0b0667c4..c2c4086b27f6 100644
--- a/sw/source/core/unocore/unochart.cxx
+++ b/sw/source/core/unocore/unochart.cxx
@@ -1475,12 +1475,12 @@ void SwChartDataProvider::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pN
     ClientModify(this, pOld, pNew );
 }
 
-void SwChartDataProvider::AddDataSequence( const SwTable &rTable, uno::Reference< chart2::data::XDataSequence > &rxDataSequence )
+void SwChartDataProvider::AddDataSequence( const SwTable &rTable, uno::Reference< chart2::data::XDataSequence > const &rxDataSequence )
 {
     aDataSequences[ &rTable ].insert( rxDataSequence );
 }
 
-void SwChartDataProvider::RemoveDataSequence( const SwTable &rTable, uno::Reference< chart2::data::XDataSequence > &rxDataSequence )
+void SwChartDataProvider::RemoveDataSequence( const SwTable &rTable, uno::Reference< chart2::data::XDataSequence > const &rxDataSequence )
 {
     aDataSequences[ &rTable ].erase( rxDataSequence );
 }
diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx
index 805d919ea3e7..02df4ff1e85b 100644
--- a/sw/source/core/unocore/unocrsrhelper.cxx
+++ b/sw/source/core/unocore/unocrsrhelper.cxx
@@ -271,7 +271,7 @@ void GetSelectableFromAny(uno::Reference<uno::XInterface> const& xIfc,
 }
 
 uno::Reference<text::XTextContent>
-GetNestedTextContent(SwTextNode & rTextNode, sal_Int32 const nIndex,
+GetNestedTextContent(SwTextNode const & rTextNode, sal_Int32 const nIndex,
         bool const bParent)
 {
     // these should be unambiguous because of the dummy character
@@ -743,7 +743,7 @@ bool getCursorPropertyValue(const SfxItemPropertySimpleEntry& rEntry
     return bDone;
 };
 
-sal_Int16 IsNodeNumStart(SwPaM& rPam, PropertyState& eState)
+sal_Int16 IsNodeNumStart(SwPaM const & rPam, PropertyState& eState)
 {
     const SwTextNode* pTextNd = rPam.GetNode().GetTextNode();
     // correction: check, if restart value is set at the text node and use
@@ -906,7 +906,7 @@ void  getNumberingProperty(SwPaM& rPam, PropertyState& eState, Any * pAny )
         eState = PropertyState_DEFAULT_VALUE;
 }
 
-void GetCurPageStyle(SwPaM& rPaM, OUString &rString)
+void GetCurPageStyle(SwPaM const & rPaM, OUString &rString)
 {
     if (!rPaM.GetContentNode())
         return; // TODO: is there an easy way to get it for tables/sections?
@@ -1158,7 +1158,7 @@ bool DocInsertStringSplitCR(
     return bOK;
 }
 
-void makeRedline( SwPaM& rPaM,
+void makeRedline( SwPaM const & rPaM,
     const OUString& rRedlineType,
     const uno::Sequence< beans::PropertyValue >& rRedlineProperties )
 {
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index 7b26b283fcb7..8d7a73882c7a 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -925,7 +925,7 @@ SwXShape::SwXShape(uno::Reference< uno::XInterface > & xShape) :
     }
 }
 
-void SwXShape::AddExistingShapeToFormat( SdrObject& _rObj )
+void SwXShape::AddExistingShapeToFormat( SdrObject const & _rObj )
 {
     SdrObjListIter aIter( _rObj, SdrIterMode::DeepNoGroups );
     while ( aIter.IsMore() )
diff --git a/sw/source/core/unocore/unoevent.cxx b/sw/source/core/unocore/unoevent.cxx
index 3d2f30d53d73..58f43bb886e9 100644
--- a/sw/source/core/unocore/unoevent.cxx
+++ b/sw/source/core/unocore/unoevent.cxx
@@ -137,7 +137,7 @@ void SwHyperlinkEventDescriptor::copyMacrosIntoINetFormat(
 
 void SwHyperlinkEventDescriptor::copyMacrosFromNameReplace(
     uno::Reference<
-        container::XNameReplace> & xReplace)
+        container::XNameReplace> const & xReplace)
 {
     // iterate over all names (all names that *we* support)
     Sequence<OUString> aNames = getElementNames();
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx
index 5c048c46d21a..76f4d3e3b15d 100644
--- a/sw/source/core/unocore/unoobj.cxx
+++ b/sw/source/core/unocore/unoobj.cxx
@@ -398,7 +398,7 @@ lcl_setCharFormatSequence(SwPaM & rPam, uno::Any const& rValue)
 }
 
 static void
-lcl_setDropcapCharStyle(SwPaM & rPam, SfxItemSet & rItemSet,
+lcl_setDropcapCharStyle(SwPaM const & rPam, SfxItemSet & rItemSet,
         uno::Any const& rValue)
 {
     OUString uStyle;
@@ -2032,7 +2032,7 @@ void SwUnoCursorHelper::SetPropertyToDefault(
 }
 
 uno::Any SwUnoCursorHelper::GetPropertyDefault(
-    SwPaM& rPaM, const SfxItemPropertySet& rPropSet,
+    SwPaM const & rPaM, const SfxItemPropertySet& rPropSet,
     const OUString& rPropertyName)
 {
     SfxItemPropertySimpleEntry const*const pEntry =
diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx
index 92248fc1c1f3..b672f49ee175 100644
--- a/sw/source/core/unocore/unoobj2.cxx
+++ b/sw/source/core/unocore/unoobj2.cxx
@@ -750,7 +750,7 @@ void SwXTextRange::Impl::Modify(const SfxPoolItem *pOld, const SfxPoolItem *pNew
     }
 }
 
-SwXTextRange::SwXTextRange(SwPaM& rPam,
+SwXTextRange::SwXTextRange(SwPaM const & rPam,
         const uno::Reference< text::XText > & xParent,
         const enum RangePosition eRange)
     : m_pImpl( new SwXTextRange::Impl(*rPam.GetDoc(), eRange, nullptr, xParent) )
@@ -1073,7 +1073,7 @@ bool XTextRangeToSwPaM( SwUnoInternalPaM & rToFill,
 }
 
 static bool
-lcl_IsStartNodeInFormat(const bool bHeader, SwStartNode *const pSttNode,
+lcl_IsStartNodeInFormat(const bool bHeader, SwStartNode const *const pSttNode,
     SwFrameFormat const*const pFrameFormat, SwFrameFormat*& rpFormat)
 {
     bool bRet = false;
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx
index fa2d6d0173a7..e9bb0f4ab4ff 100644
--- a/sw/source/core/unocore/unoportenum.cxx
+++ b/sw/source/core/unocore/unoportenum.cxx
@@ -700,7 +700,7 @@ lcl_ExportHints(
     PortionStack_t & rPortionStack,
     const Reference<XText> & xParent,
     SwUnoCursor * const pUnoCursor,
-    SwpHints * const pHints,
+    SwpHints const * const pHints,
     const sal_Int32 i_nStartPos,
     const sal_Int32 i_nEndPos,
     const sal_Int32 nCurrentIndex,
@@ -1165,7 +1165,7 @@ static void lcl_ExportAnnotationStarts(
 static sal_Int32 lcl_ExportFrames(
     TextRangeList_t & rPortions,
     Reference<XText> const & i_xParent,
-    SwUnoCursor * const i_pUnoCursor,
+    SwUnoCursor const * const i_pUnoCursor,
     FrameClientSortList_t & i_rFrames,
     sal_Int32 const i_nCurrentIndex)
 {
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index 09be26616923..ebb2856bff32 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -1223,7 +1223,7 @@ uno::Sequence< OUString > SwXStyle::getSupportedServiceNames()
     return aRet;
 }
 
-static uno::Reference<beans::XPropertySet> lcl_InitStandardStyle(const SfxStyleFamily eFamily,  uno::Reference<container::XNameAccess>& rxStyleFamily)
+static uno::Reference<beans::XPropertySet> lcl_InitStandardStyle(const SfxStyleFamily eFamily,  uno::Reference<container::XNameAccess> const & rxStyleFamily)
 {
     using return_t = decltype(lcl_InitStandardStyle(eFamily, rxStyleFamily));
     if(eFamily != SfxStyleFamily::Para && eFamily != SfxStyleFamily::Page)
@@ -2562,7 +2562,7 @@ void SwXStyle::setPropertyToDefault(const OUString& rPropertyName)
     setPropertiesToDefault(aSequence);
 }
 
-SwFormat* lcl_GetFormatForStyle(SwDoc* pDoc, const rtl::Reference<SwDocStyleSheet>& xStyle, const SfxStyleFamily eFamily)
+SwFormat* lcl_GetFormatForStyle(SwDoc const * pDoc, const rtl::Reference<SwDocStyleSheet>& xStyle, const SfxStyleFamily eFamily)
 {
     if(!xStyle.is())
         return nullptr;
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 13375f32bef3..c08e5f5840d3 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -181,7 +181,7 @@ static void lcl_SendChartEvent(::cppu::OWeakObject & rSource,
 }
 
 static void lcl_SendChartEvent(uno::Reference<uno::XInterface> const& xSource,
-                               ::cppu::OMultiTypeInterfaceContainerHelper & rListeners)
+                               ::cppu::OMultiTypeInterfaceContainerHelper const & rListeners)
 {
     ::cppu::OInterfaceContainerHelper *const pContainer(rListeners.getContainer(
             cppu::UnoType<chart::XChartDataChangeEventListener>::get()));
@@ -192,7 +192,7 @@ static void lcl_SendChartEvent(uno::Reference<uno::XInterface> const& xSource,
 }
 
 static void lcl_SendChartEvent(::cppu::OWeakObject & rSource,
-                               ::cppu::OMultiTypeInterfaceContainerHelper & rListeners)
+                               ::cppu::OMultiTypeInterfaceContainerHelper const & rListeners)
 {
     return lcl_SendChartEvent(&rSource, rListeners);
 }
@@ -606,7 +606,7 @@ static void lcl_InspectLines(SwTableLines& rLines, std::vector<OUString>& rAllNa
     }
 }
 
-static bool lcl_FormatTable(SwFrameFormat* pTableFormat)
+static bool lcl_FormatTable(SwFrameFormat const * pTableFormat)
 {
     bool bHasFrames = false;
     SwIterator<SwFrame,SwFormat> aIter( *pTableFormat );
@@ -638,7 +638,7 @@ static void lcl_CursorSelect(SwPaM& rCursor, bool bExpand)
         rCursor.DeleteMark();
 }
 
-static void lcl_GetTableSeparators(uno::Any& rRet, SwTable* pTable, SwTableBox* pBox, bool bRow)
+static void lcl_GetTableSeparators(uno::Any& rRet, SwTable const * pTable, SwTableBox const * pBox, bool bRow)
 {
     SwTabCols aCols;
     aCols.SetLeftMin ( 0 );
@@ -667,7 +667,7 @@ static void lcl_GetTableSeparators(uno::Any& rRet, SwTable* pTable, SwTableBox*
 
 }
 
-static void lcl_SetTableSeparators(const uno::Any& rVal, SwTable* pTable, SwTableBox* pBox, bool bRow, SwDoc* pDoc)
+static void lcl_SetTableSeparators(const uno::Any& rVal, SwTable* pTable, SwTableBox const * pBox, bool bRow, SwDoc* pDoc)
 {
     SwTabCols aOldCols;
 
@@ -1442,7 +1442,7 @@ void SwXTextTableRow::SwClientNotify(const SwModify& rModify, const SfxHint& rHi
         SwClient::SwClientNotify(rModify, rHint);
 }
 
-SwTableLine* SwXTextTableRow::FindLine(SwTable* pTable, SwTableLine* pLine)
+SwTableLine* SwXTextTableRow::FindLine(SwTable* pTable, SwTableLine const * pLine)
 {
     for(auto& pCurrentLine : pTable->GetTabLines())
         if(pCurrentLine == pLine)
@@ -1488,7 +1488,7 @@ SwUnoCursor&          SwXTextTableCursor::GetCursor()       { return *m_pUnoCurs
 uno::Sequence<OUString> SwXTextTableCursor::getSupportedServiceNames()
     { return {"com.sun.star.text.TextTableCursor"}; }
 
-SwXTextTableCursor::SwXTextTableCursor(SwFrameFormat* pFormat, SwTableBox* pBox) :
+SwXTextTableCursor::SwXTextTableCursor(SwFrameFormat* pFormat, SwTableBox const * pBox) :
     SwClient(pFormat),
     m_pPropSet(aSwMapProvider.GetPropertySet(PROPERTY_MAP_TEXT_TABLE_CURSOR))
 {
@@ -2237,9 +2237,9 @@ uno::Reference<table::XCell>  SwXTextTable::getCellByPosition(sal_Int32 nColumn,
 namespace {
 
 uno::Reference<table::XCellRange> GetRangeByName(
-        SwFrameFormat* pFormat, SwTable* pTable,
+        SwFrameFormat* pFormat, SwTable const * pTable,
         const OUString& rTLName, const OUString& rBRName,
-        SwRangeDescriptor& rDesc)
+        SwRangeDescriptor const & rDesc)
 {
     const SwTableBox* pTLBox = pTable->GetTableBox(rTLName);
     if(!pTLBox)
@@ -3164,7 +3164,7 @@ public:
     bool m_bFirstColumnAsLabel;
 
     Impl(sw::UnoCursorPointer const& pCursor, SwFrameFormat& rFrameFormat,
-            SwRangeDescriptor& rDesc)
+            SwRangeDescriptor const & rDesc)
         : SwClient(&rFrameFormat)
         , m_ChartListeners(m_Mutex)
         , m_pTableCursor(pCursor)
@@ -3237,7 +3237,7 @@ uno::Sequence<OUString> SwXCellRange::getSupportedServiceNames()
 }
 
 SwXCellRange::SwXCellRange(sw::UnoCursorPointer const& pCursor,
-        SwFrameFormat& rFrameFormat, SwRangeDescriptor& rDesc)
+        SwFrameFormat& rFrameFormat, SwRangeDescriptor const & rDesc)
     : m_pImpl(new Impl(pCursor, rFrameFormat, rDesc))
 {
 }
@@ -3248,7 +3248,7 @@ SwXCellRange::~SwXCellRange()
 
 rtl::Reference<SwXCellRange> SwXCellRange::CreateXCellRange(
         sw::UnoCursorPointer const& pCursor, SwFrameFormat& rFrameFormat,
-        SwRangeDescriptor& rDesc)
+        SwRangeDescriptor const & rDesc)
 {
     SwXCellRange *const pCellRange(new SwXCellRange(pCursor, rFrameFormat, rDesc));
     uno::Reference<table::XCellRange> xCellRange(pCellRange);
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx
index a712f9f57509..12f5100ca9cc 100644
--- a/sw/source/core/unocore/unotext.cxx
+++ b/sw/source/core/unocore/unotext.cxx
@@ -2546,9 +2546,9 @@ void SwXHeadFootText::Impl::Modify( const SfxPoolItem *pOld, const SfxPoolItem *
     ClientModify(this, pOld, pNew);
 }
 
-bool SwXHeadFootText::IsXHeadFootText(SwClient *const pClient)
+bool SwXHeadFootText::IsXHeadFootText(SwClient const *const pClient)
 {
-    return dynamic_cast<SwXHeadFootText::Impl*>(pClient) !=  nullptr;
+    return dynamic_cast<SwXHeadFootText::Impl const *>(pClient) !=  nullptr;
 }
 
 uno::Reference< text::XText >
diff --git a/sw/source/core/view/viewimp.cxx b/sw/source/core/view/viewimp.cxx
index 22141173012b..22ea4ad88244 100644
--- a/sw/source/core/view/viewimp.cxx
+++ b/sw/source/core/view/viewimp.cxx
@@ -166,7 +166,7 @@ bool SwViewShellImp::IsUpdateExpFields()
     return false;
 }
 
-void SwViewShellImp::SetFirstVisPage(OutputDevice* pRenderContext)
+void SwViewShellImp::SetFirstVisPage(OutputDevice const * pRenderContext)
 {
     if ( m_pShell->mbDocSizeChgd && m_pShell->VisArea().Top() > m_pShell->GetLayout()->Frame().Height() )
     {
@@ -266,14 +266,14 @@ Color SwViewShellImp::GetRetoucheColor() const
     return aRet;
 }
 
-SwPageFrame *SwViewShellImp::GetFirstVisPage(OutputDevice* pRenderContext)
+SwPageFrame *SwViewShellImp::GetFirstVisPage(OutputDevice const * pRenderContext)
 {
     if ( m_bFirstPageInvalid )
         SetFirstVisPage(pRenderContext);
     return m_pFirstVisiblePage;
 }
 
-const SwPageFrame *SwViewShellImp::GetFirstVisPage(OutputDevice* pRenderContext) const
+const SwPageFrame *SwViewShellImp::GetFirstVisPage(OutputDevice const * pRenderContext) const
 {
     if ( m_bFirstPageInvalid )
         const_cast<SwViewShellImp*>(this)->SetFirstVisPage(pRenderContext);
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 2a2d46c95c39..b55b00134da1 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -133,7 +133,7 @@ void SwViewShell::dumpAsXml(xmlTextWriterPtr pWriter) const
 }
 
 static void
-lcl_PaintTransparentFormControls(SwViewShell & rShell, SwRect const& rRect)
+lcl_PaintTransparentFormControls(SwViewShell const & rShell, SwRect const& rRect)
 {
     // Direct paint has been performed: the background of transparent child
     // windows has been painted, so need to paint the child windows now.
@@ -593,7 +593,7 @@ void SwViewShell::MakeVisible( const SwRect &rRect )
     }
 }
 
-vcl::Window* SwViewShell::CareChildWin(SwViewShell& rVSh)
+vcl::Window* SwViewShell::CareChildWin(SwViewShell const & rVSh)
 {
     if(rVSh.mpSfxViewShell)
     {
@@ -2435,7 +2435,7 @@ SwAccessibleMap* SwViewShell::GetAccessibleMap()
     return nullptr;
 }
 
-void SwViewShell::ApplyAccessiblityOptions(SvtAccessibilityOptions& rAccessibilityOptions)
+void SwViewShell::ApplyAccessiblityOptions(SvtAccessibilityOptions const & rAccessibilityOptions)
 {
     if(mpOpt->IsPagePreview() && !rAccessibilityOptions.GetIsForPagePreviews())
     {
diff --git a/sw/source/core/view/vprint.cxx b/sw/source/core/view/vprint.cxx
index 97a437cda14d..8b0064ecc0f8 100644
--- a/sw/source/core/view/vprint.cxx
+++ b/sw/source/core/view/vprint.cxx
@@ -151,7 +151,7 @@ void SwPaintQueue::Repaint()
     }
 }
 
-void SwPaintQueue::Remove( SwViewShell *pSh )
+void SwPaintQueue::Remove( SwViewShell const *pSh )
 {
     SwQueuedPaint *pPt;
     if (nullptr != (pPt = s_pPaintQueue))
@@ -255,7 +255,7 @@ void SwViewShell::ChgAllPageOrientation( Orientation eOri )
     }
 }
 
-void SwViewShell::ChgAllPageSize( Size &rSz )
+void SwViewShell::ChgAllPageSize( Size const &rSz )
 {
     OSL_ENSURE( mnStartAction, "missing an Action" );
     SET_CURR_SHELL( this );
diff --git a/sw/source/filter/basflt/fltini.cxx b/sw/source/filter/basflt/fltini.cxx
index 3a0cc3648f7f..002317811a3d 100644
--- a/sw/source/filter/basflt/fltini.cxx
+++ b/sw/source/filter/basflt/fltini.cxx
@@ -281,7 +281,7 @@ void StgReader::SetFltName( const OUString& rFltNm )
         aFltName = rFltNm;
 }
 
-SwRelNumRuleSpaces::SwRelNumRuleSpaces( SwDoc& rDoc, bool bNDoc )
+SwRelNumRuleSpaces::SwRelNumRuleSpaces( SwDoc const & rDoc, bool bNDoc )
 {
     pNumRuleTable = new SwNumRuleTable;
     pNumRuleTable->reserve(8);
diff --git a/sw/source/filter/basflt/shellio.cxx b/sw/source/filter/basflt/shellio.cxx
index c6f9c05bc77d..03496564fd45 100644
--- a/sw/source/filter/basflt/shellio.cxx
+++ b/sw/source/filter/basflt/shellio.cxx
@@ -726,7 +726,7 @@ SwWriter::SwWriter(SfxMedium& rMedium, SwDoc &rDocument)
 {
 }
 
-ErrCode SwWriter::Write( WriterRef& rxWriter, const OUString* pRealFileName )
+ErrCode SwWriter::Write( WriterRef const & rxWriter, const OUString* pRealFileName )
 {
     // #i73788#
     SwPauseThreadStarting aPauseThreadStarting;
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx
index f383f822ab51..7badbbd29319 100644
--- a/sw/source/filter/html/htmlcss1.cxx
+++ b/sw/source/filter/html/htmlcss1.cxx
@@ -272,7 +272,7 @@ void SwCSS1Parser::SetLinkCharFormats()
 }
 
 static void SetTextCollAttrs( SwTextFormatColl *pColl, SfxItemSet& rItemSet,
-                             SvxCSS1PropertyInfo& rPropInfo,
+                             SvxCSS1PropertyInfo const & rPropInfo,
                              SwCSS1Parser *pCSS1Parser )
 {
     const SfxItemSet& rCollItemSet = pColl->GetAttrSet();
diff --git a/sw/source/filter/html/htmlctxt.cxx b/sw/source/filter/html/htmlctxt.cxx
index f023c0c05db4..15b2d6fcb7b0 100644
--- a/sw/source/filter/html/htmlctxt.cxx
+++ b/sw/source/filter/html/htmlctxt.cxx
@@ -464,7 +464,7 @@ bool SwHTMLParser::CreateContainer( const OUString& rClass,
 }
 
 void SwHTMLParser::InsertAttrs( SfxItemSet &rItemSet,
-                                SvxCSS1PropertyInfo &rPropInfo,
+                                SvxCSS1PropertyInfo const &rPropInfo,
                                 HTMLAttrContext *pContext,
                                 bool bCharLvl )
 {
diff --git a/sw/source/filter/html/swhtml.hxx b/sw/source/filter/html/swhtml.hxx
index 99932c7643ad..6f3658868ff4 100644
--- a/sw/source/filter/html/swhtml.hxx
+++ b/sw/source/filter/html/swhtml.hxx
@@ -526,7 +526,7 @@ class SwHTMLParser : public SfxHTMLParser, public SwClient
                           HTMLAttrContext *pContext );
     bool EndSection( bool bLFStripped=false );
 
-    void InsertAttrs( SfxItemSet &rItemSet, SvxCSS1PropertyInfo &rPropInfo,
+    void InsertAttrs( SfxItemSet &rItemSet, SvxCSS1PropertyInfo const &rPropInfo,
                       HTMLAttrContext *pContext, bool bCharLvl=false );
     void InsertAttr( HTMLAttr **ppAttr, const SfxPoolItem & rItem,
                      HTMLAttrContext *pCntxt );
diff --git a/sw/source/filter/inc/fltini.hxx b/sw/source/filter/inc/fltini.hxx
index a5b7f1569a4d..4dd40872e77a 100644
--- a/sw/source/filter/inc/fltini.hxx
+++ b/sw/source/filter/inc/fltini.hxx
@@ -67,7 +67,7 @@ class SW_DLLPUBLIC SwRelNumRuleSpaces
     SwNumRuleTable* pNumRuleTable;  // list of all named NumRules
 
 public:
-    SwRelNumRuleSpaces( SwDoc& rDoc, bool bNewDoc );
+    SwRelNumRuleSpaces( SwDoc const & rDoc, bool bNewDoc );
     ~SwRelNumRuleSpaces();
 };
 
diff --git a/sw/source/filter/inc/fltshell.hxx b/sw/source/filter/inc/fltshell.hxx
index 1a9d643568b8..da282f14548f 100644
--- a/sw/source/filter/inc/fltshell.hxx
+++ b/sw/source/filter/inc/fltshell.hxx
@@ -69,7 +69,7 @@ public:
         return (m_nContent == rOther.m_nContent &&
                 m_nNode == rOther.m_nNode);
     }
-    void SetPos(SwNodeIndex &rNode, sal_uInt16 nIdx)
+    void SetPos(SwNodeIndex const &rNode, sal_uInt16 nIdx)
     {
         m_nNode = rNode;
         m_nContent = nIdx;


More information about the Libreoffice-commits mailing list