[Libreoffice-commits] core.git: chart2/source compilerplugins/clang sd/inc sd/qa sd/source svx/source

Noel Grandin noel.grandin at collabora.co.uk
Thu Aug 3 09:08:19 UTC 2017


 chart2/source/view/charttypes/PieChart.cxx                        |    2 
 chart2/source/view/charttypes/PieChart.hxx                        |    2 
 compilerplugins/clang/constparams.cxx                             |    6 ++
 sd/inc/Annotation.hxx                                             |    4 -
 sd/inc/CustomAnimationEffect.hxx                                  |    2 
 sd/inc/EffectMigration.hxx                                        |    6 +-
 sd/inc/OutlinerIterator.hxx                                       |    2 
 sd/inc/TransitionPreset.hxx                                       |    2 
 sd/inc/animations.hxx                                             |    2 
 sd/inc/drawdoc.hxx                                                |   18 ++++----
 sd/inc/notifydocumentevent.hxx                                    |    4 -
 sd/inc/sdmod.hxx                                                  |    4 -
 sd/inc/sdpage.hxx                                                 |    6 +-
 sd/inc/stlpool.hxx                                                |    6 +-
 sd/inc/stlsheet.hxx                                               |    2 
 sd/inc/textapi.hxx                                                |    2 
 sd/qa/unit/import-tests.cxx                                       |    4 -
 sd/source/core/CustomAnimationEffect.cxx                          |    6 +-
 sd/source/core/EffectMigration.cxx                                |   12 ++---
 sd/source/core/TransitionPreset.cxx                               |    2 
 sd/source/core/annotations/Annotation.cxx                         |    6 +-
 sd/source/core/drawdoc2.cxx                                       |    8 +--
 sd/source/core/drawdoc3.cxx                                       |    8 +--
 sd/source/core/drawdoc4.cxx                                       |    6 +-
 sd/source/core/sdpage.cxx                                         |    6 +-
 sd/source/core/sdpage_animations.cxx                              |    6 +-
 sd/source/core/stlpool.cxx                                        |    8 +--
 sd/source/core/stlsheet.cxx                                       |    4 -
 sd/source/core/text/textapi.cxx                                   |    6 +-
 sd/source/filter/eppt/eppt.cxx                                    |   16 +++----
 sd/source/filter/eppt/eppt.hxx                                    |   16 +++----
 sd/source/filter/eppt/epptooxml.hxx                               |    2 
 sd/source/filter/eppt/epptso.cxx                                  |    6 +-
 sd/source/filter/eppt/escherex.cxx                                |    2 
 sd/source/filter/eppt/escherex.hxx                                |    2 
 sd/source/filter/eppt/grouptable.hxx                              |    4 -
 sd/source/filter/eppt/pptx-epptooxml.cxx                          |    2 
 sd/source/filter/eppt/pptx-grouptable.cxx                         |    2 
 sd/source/filter/eppt/pptx-text.cxx                               |    4 -
 sd/source/filter/eppt/text.hxx                                    |    4 -
 sd/source/filter/html/htmlattr.cxx                                |    4 -
 sd/source/filter/html/htmlattr.hxx                                |    4 -
 sd/source/filter/html/htmlex.cxx                                  |   16 +++----
 sd/source/filter/html/htmlex.hxx                                  |   16 +++----
 sd/source/filter/ppt/pptinanimations.cxx                          |    2 
 sd/source/filter/ppt/pptinanimations.hxx                          |    2 
 sd/source/filter/xml/sdtransform.cxx                              |    4 -
 sd/source/filter/xml/sdxmlwrp.cxx                                 |    4 -
 sd/source/ui/animations/CustomAnimationDialog.cxx                 |    8 +--
 sd/source/ui/animations/CustomAnimationPane.cxx                   |    6 +-
 sd/source/ui/animations/CustomAnimationPane.hxx                   |    6 +-
 sd/source/ui/animations/SlideTransitionPane.cxx                   |    2 
 sd/source/ui/annotations/annotationmanager.cxx                    |   22 +++++-----
 sd/source/ui/annotations/annotationmanagerimpl.hxx                |   16 +++----
 sd/source/ui/annotations/annotationtag.cxx                        |    2 
 sd/source/ui/annotations/annotationtag.hxx                        |    2 
 sd/source/ui/annotations/annotationwindow.cxx                     |    2 
 sd/source/ui/app/optsitem.cxx                                     |   10 ++--
 sd/source/ui/app/sdmod1.cxx                                       |    8 +--
 sd/source/ui/app/sdmod2.cxx                                       |    4 -
 sd/source/ui/controller/displaymodecontroller.cxx                 |    4 -
 sd/source/ui/controller/slidelayoutcontroller.cxx                 |    4 -
 sd/source/ui/dlg/NavigatorChildWindow.cxx                         |    2 
 sd/source/ui/dlg/TemplateScanner.cxx                              |    2 
 sd/source/ui/dlg/animobjs.cxx                                     |    2 
 sd/source/ui/dlg/custsdlg.cxx                                     |    4 -
 sd/source/ui/dlg/dlgpage.cxx                                      |    2 
 sd/source/ui/dlg/dlgsnap.cxx                                      |    2 
 sd/source/ui/dlg/headerfooterdlg.cxx                              |    8 +--
 sd/source/ui/dlg/prltempl.cxx                                     |    2 
 sd/source/ui/dlg/sdtreelb.cxx                                     |    2 
 sd/source/ui/dlg/tabtempl.cxx                                     |    2 
 sd/source/ui/dlg/tpaction.cxx                                     |    2 
 sd/source/ui/dlg/vectdlg.cxx                                      |    6 +-
 sd/source/ui/docshell/docshel2.cxx                                |    2 
 sd/source/ui/framework/module/CenterViewFocusModule.cxx           |    2 
 sd/source/ui/framework/module/CenterViewFocusModule.hxx           |    2 
 sd/source/ui/framework/module/DrawModule.cxx                      |    2 
 sd/source/ui/framework/module/ImpressModule.cxx                   |    2 
 sd/source/ui/framework/module/PresentationModule.cxx              |    2 
 sd/source/ui/framework/module/ShellStackGuard.cxx                 |    2 
 sd/source/ui/framework/module/ShellStackGuard.hxx                 |    2 
 sd/source/ui/framework/tools/FrameworkHelper.cxx                  |    2 
 sd/source/ui/func/fubullet.cxx                                    |    6 +-
 sd/source/ui/func/fucon3d.cxx                                     |    2 
 sd/source/ui/func/fuconrec.cxx                                    |    4 -
 sd/source/ui/func/fuformatpaintbrush.cxx                          |    2 
 sd/source/ui/func/futext.cxx                                      |    2 
 sd/source/ui/inc/DrawDocShell.hxx                                 |    2 
 sd/source/ui/inc/DrawViewShell.hxx                                |   16 +++----
 sd/source/ui/inc/EventMultiplexer.hxx                             |    2 
 sd/source/ui/inc/FrameView.hxx                                    |    2 
 sd/source/ui/inc/GraphicObjectBar.hxx                             |    2 
 sd/source/ui/inc/MediaObjectBar.hxx                               |    2 
 sd/source/ui/inc/OutlineView.hxx                                  |   12 ++---
 sd/source/ui/inc/OutlineViewShell.hxx                             |    2 
 sd/source/ui/inc/RemoteServer.hxx                                 |    2 
 sd/source/ui/inc/TemplateScanner.hxx                              |    2 
 sd/source/ui/inc/View.hxx                                         |    8 +--
 sd/source/ui/inc/ViewClipboard.hxx                                |    2 
 sd/source/ui/inc/ViewShell.hxx                                    |    2 
 sd/source/ui/inc/ViewShellBase.hxx                                |    2 
 sd/source/ui/inc/ViewShellImplementation.hxx                      |    2 
 sd/source/ui/inc/ViewShellManager.hxx                             |    6 +-
 sd/source/ui/inc/animobjs.hxx                                     |    2 
 sd/source/ui/inc/annotationmanager.hxx                            |    2 
 sd/source/ui/inc/custsdlg.hxx                                     |    4 -
 sd/source/ui/inc/dlgpage.hxx                                      |    2 
 sd/source/ui/inc/dlgsnap.hxx                                      |    2 
 sd/source/ui/inc/framework/DrawModule.hxx                         |    2 
 sd/source/ui/inc/framework/FrameworkHelper.hxx                    |    2 
 sd/source/ui/inc/framework/ImpressModule.hxx                      |    2 
 sd/source/ui/inc/framework/PresentationModule.hxx                 |    2 
 sd/source/ui/inc/fubullet.hxx                                     |    4 -
 sd/source/ui/inc/fucon3d.hxx                                      |    2 
 sd/source/ui/inc/fuconrec.hxx                                     |    2 
 sd/source/ui/inc/fuformatpaintbrush.hxx                           |    2 
 sd/source/ui/inc/optsitem.hxx                                     |   10 ++--
 sd/source/ui/inc/prltempl.hxx                                     |    2 
 sd/source/ui/inc/sdtreelb.hxx                                     |    2 
 sd/source/ui/inc/slideshow.hxx                                    |   18 ++++----
 sd/source/ui/inc/tabtempl.hxx                                     |    2 
 sd/source/ui/inc/tools/SlotStateListener.hxx                      |    2 
 sd/source/ui/inc/tpaction.hxx                                     |    2 
 sd/source/ui/inc/unomodel.hxx                                     |    4 -
 sd/source/ui/inc/unopage.hxx                                      |    4 -
 sd/source/ui/inc/unosrch.hxx                                      |    2 
 sd/source/ui/inc/vectdlg.hxx                                      |    6 +-
 sd/source/ui/remotecontrol/Server.cxx                             |    2 
 sd/source/ui/sidebar/DocumentHelper.cxx                           |   12 ++---
 sd/source/ui/sidebar/DocumentHelper.hxx                           |   12 ++---
 sd/source/ui/slideshow/showwin.cxx                                |    2 
 sd/source/ui/slideshow/showwindow.hxx                             |    2 
 sd/source/ui/slideshow/slideshow.cxx                              |   16 +++----
 sd/source/ui/slideshow/slideshowimpl.cxx                          |    6 +-
 sd/source/ui/slideshow/slideshowimpl.hxx                          |    4 -
 sd/source/ui/slidesorter/controller/SlsClipboard.cxx              |    2 
 sd/source/ui/slidesorter/controller/SlsPageSelector.cxx           |    4 -
 sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx      |    8 +--
 sd/source/ui/slidesorter/controller/SlsSelectionObserver.cxx      |    2 
 sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx     |    2 
 sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx          |    2 
 sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx       |    4 -
 sd/source/ui/slidesorter/inc/controller/SlsSelectionObserver.hxx  |    2 
 sd/source/ui/slidesorter/inc/controller/SlsVisibleAreaManager.hxx |    2 
 sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx             |    2 
 sd/source/ui/slidesorter/inc/view/SlsLayouter.hxx                 |    2 
 sd/source/ui/slidesorter/view/SlideSorterView.cxx                 |    2 
 sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx               |    4 -
 sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx                |    2 
 sd/source/ui/slidesorter/view/SlsLayouter.cxx                     |   10 ++--
 sd/source/ui/table/TableDesignPane.cxx                            |    4 -
 sd/source/ui/table/tablefunction.cxx                              |    2 
 sd/source/ui/tools/EventMultiplexer.cxx                           |   12 ++---
 sd/source/ui/tools/SlotStateListener.cxx                          |    2 
 sd/source/ui/uitest/uiobject.cxx                                  |    2 
 sd/source/ui/unoidl/unolayer.cxx                                  |    4 -
 sd/source/ui/unoidl/unomodel.cxx                                  |   10 ++--
 sd/source/ui/unoidl/unopage.cxx                                   |   10 ++--
 sd/source/ui/unoidl/unosrch.cxx                                   |    2 
 sd/source/ui/unoidl/unowcntr.cxx                                  |    2 
 sd/source/ui/unoidl/unowcntr.hxx                                  |    4 -
 sd/source/ui/view/DocumentRenderer.cxx                            |    2 
 sd/source/ui/view/GraphicObjectBar.cxx                            |    2 
 sd/source/ui/view/MediaObjectBar.cxx                              |    2 
 sd/source/ui/view/OutlinerIterator.cxx                            |    2 
 sd/source/ui/view/ToolBarManager.cxx                              |    4 -
 sd/source/ui/view/ViewClipboard.cxx                               |    2 
 sd/source/ui/view/ViewShellBase.cxx                               |    2 
 sd/source/ui/view/ViewShellImplementation.cxx                     |    2 
 sd/source/ui/view/ViewShellManager.cxx                            |   10 ++--
 sd/source/ui/view/drviews2.cxx                                    |    2 
 sd/source/ui/view/drviews4.cxx                                    |    2 
 sd/source/ui/view/drviews6.cxx                                    |    2 
 sd/source/ui/view/drviews9.cxx                                    |    2 
 sd/source/ui/view/drviewsa.cxx                                    |    4 -
 sd/source/ui/view/drviewse.cxx                                    |    6 +-
 sd/source/ui/view/drviewsg.cxx                                    |    2 
 sd/source/ui/view/frmview.cxx                                     |    2 
 sd/source/ui/view/outlnvsh.cxx                                    |    2 
 sd/source/ui/view/outlview.cxx                                    |   12 ++---
 sd/source/ui/view/sdview2.cxx                                     |    2 
 sd/source/ui/view/sdview3.cxx                                     |    4 -
 sd/source/ui/view/sdview4.cxx                                     |    2 
 sd/source/ui/view/sdview5.cxx                                     |    2 
 sd/source/ui/view/viewshel.cxx                                    |    4 -
 svx/source/form/fmtextcontrolshell.cxx                            |    2 
 svx/source/inc/fmtextcontrolshell.hxx                             |    2 
 188 files changed, 413 insertions(+), 409 deletions(-)

New commits:
commit dafae0fe31353a8092334328d499bc108d39e44c
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Thu Aug 3 10:23:01 2017 +0200

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

diff --git a/chart2/source/view/charttypes/PieChart.cxx b/chart2/source/view/charttypes/PieChart.cxx
index 184d824ce919..aac461c914d5 100644
--- a/chart2/source/view/charttypes/PieChart.cxx
+++ b/chart2/source/view/charttypes/PieChart.cxx
@@ -1578,7 +1578,7 @@ bool PieChart::performLabelBestFitInnerPlacement(ShapeParam& rShapeParam, PieLab
  *  First off the routine try to place the label inside the related pie slice,
  *  if this is not possible the label is placed outside.
  */
-void PieChart::performLabelBestFit(ShapeParam& rShapeParam, PieLabelInfo& rPieLabelInfo)
+void PieChart::performLabelBestFit(ShapeParam& rShapeParam, PieLabelInfo const & rPieLabelInfo)
 {
     if( m_bUseRings )
         return;
diff --git a/chart2/source/view/charttypes/PieChart.hxx b/chart2/source/view/charttypes/PieChart.hxx
index d49e20da575f..efe5bfd80d02 100644
--- a/chart2/source/view/charttypes/PieChart.hxx
+++ b/chart2/source/view/charttypes/PieChart.hxx
@@ -107,7 +107,7 @@ struct PieLabelInfo;
                                 , const css::awt::Size& rPageSize );
 
     bool                performLabelBestFitInnerPlacement(ShapeParam& rShapeParam, PieLabelInfo const & rPieLabelInfo);
-    void                performLabelBestFit(ShapeParam& rShapeParam, PieLabelInfo& rPieLabelInfo);
+    void                performLabelBestFit(ShapeParam& rShapeParam, PieLabelInfo const & rPieLabelInfo);
 
 private: //member
     std::unique_ptr<PiePositionHelper>
diff --git a/compilerplugins/clang/constparams.cxx b/compilerplugins/clang/constparams.cxx
index 25e87630b2bb..54501dc527db 100644
--- a/compilerplugins/clang/constparams.cxx
+++ b/compilerplugins/clang/constparams.cxx
@@ -103,6 +103,8 @@ bool ConstParams::VisitFunctionDecl(const FunctionDecl * functionDecl)
     if (functionDecl->getTemplatedKind() != FunctionDecl::TK_NonTemplate) {
         return true;
     }
+    if (functionDecl->isDeleted())
+        return true;
     if (isa<CXXMethodDecl>(functionDecl)
         && dyn_cast<CXXMethodDecl>(functionDecl)->getParent()->getDescribedClassTemplate() != nullptr ) {
         return true;
@@ -409,7 +411,7 @@ bool ConstParams::checkIfCanBeConst(const Stmt* stmt, const ParmVarDecl* parmVar
     } else if (isa<CXXDependentScopeMemberExpr>(parent)) {
         return false;
     } else if (isa<MaterializeTemporaryExpr>(parent)) {
-        return true;
+        return checkIfCanBeConst(parent, parmVarDecl);
     } else if (auto conditionalExpr = dyn_cast<ConditionalOperator>(parent)) {
         if (conditionalExpr->getCond() == stmt)
             return true;
@@ -442,6 +444,8 @@ bool ConstParams::checkIfCanBeConst(const Stmt* stmt, const ParmVarDecl* parmVar
         return checkIfCanBeConst(parent, parmVarDecl);
     } else if (isa<CaseStmt>(parent)) {
         return true;
+    } else if (isa<CXXPseudoDestructorExpr>(parent)) {
+        return false;
     } else {
         parent->dump();
         parmVarDecl->dump();
diff --git a/sd/inc/Annotation.hxx b/sd/inc/Annotation.hxx
index d13496cbdcc9..68c343866913 100644
--- a/sd/inc/Annotation.hxx
+++ b/sd/inc/Annotation.hxx
@@ -46,10 +46,10 @@ sal_uInt32 getAnnotationId(const css::uno::Reference <css::office::XAnnotation>&
 const SdPage* getAnnotationPage(const css::uno::Reference<css::office::XAnnotation>& xAnnotation);
 
 void LOKCommentNotify(CommentNotificationType nType, const SfxViewShell* pViewShell,
-        css::uno::Reference<css::office::XAnnotation>& rxAnnotation);
+        css::uno::Reference<css::office::XAnnotation> const & rxAnnotation);
 
 void LOKCommentNotifyAll(CommentNotificationType nType,
-        css::uno::Reference<css::office::XAnnotation>& rxAnnotation);
+        css::uno::Reference<css::office::XAnnotation> const & rxAnnotation);
 }
 
 #endif
diff --git a/sd/inc/CustomAnimationEffect.hxx b/sd/inc/CustomAnimationEffect.hxx
index 187437f90b7d..9d292a055845 100644
--- a/sd/inc/CustomAnimationEffect.hxx
+++ b/sd/inc/CustomAnimationEffect.hxx
@@ -232,7 +232,7 @@ public:
     CustomAnimationTextGroup( const css::uno::Reference< css::drawing::XShape >& rTarget, sal_Int32 nGroupId );
 
     void reset();
-    void addEffect( CustomAnimationEffectPtr& pEffect );
+    void addEffect( CustomAnimationEffectPtr const & pEffect );
 
     const EffectSequence& getEffects() const { return maEffects; }
 
diff --git a/sd/inc/EffectMigration.hxx b/sd/inc/EffectMigration.hxx
index f1702b1d7f8f..9dc388c0ecb2 100644
--- a/sd/inc/EffectMigration.hxx
+++ b/sd/inc/EffectMigration.hxx
@@ -63,12 +63,12 @@ public:
     static bool GetDimPrevious( SvxShape* pShape );
     static void SetPresentationOrder( SvxShape* pShape, sal_Int32 nNewPos );
     static sal_Int32 GetPresentationOrder( SvxShape* pShape );
-    static void UpdateSoundEffect( SvxShape* pShape, SdAnimationInfo* pInfo );
+    static void UpdateSoundEffect( SvxShape* pShape, SdAnimationInfo const * pInfo );
     static OUString GetSoundFile( SvxShape* pShape );
     static bool GetSoundOn( SvxShape* pShape );
 
-    static void SetAnimationPath( SvxShape* pShape, SdrPathObj* pPathObj );
-    static void CreateAnimatedGroup(SdrObjGroup& rGroupObj, SdPage& rPage);
+    static void SetAnimationPath( SvxShape* pShape, SdrPathObj const * pPathObj );
+    static void CreateAnimatedGroup(SdrObjGroup const & rGroupObj, SdPage& rPage);
     static void DocumentLoaded(SdDrawDocument & rDoc);
 };
 
diff --git a/sd/inc/OutlinerIterator.hxx b/sd/inc/OutlinerIterator.hxx
index 0bb838b75d7e..206b00a12d9f 100644
--- a/sd/inc/OutlinerIterator.hxx
+++ b/sd/inc/OutlinerIterator.hxx
@@ -265,7 +265,7 @@ private:
             This specifies at which object the iterator points initially.
     */
     static sal_Int32 GetPageIndex (
-        SdDrawDocument* pDocument,
+        SdDrawDocument const * pDocument,
         const std::shared_ptr<ViewShell>& rpViewShell,
         PageKind ePageKind,
         EditMode eEditMode,
diff --git a/sd/inc/TransitionPreset.hxx b/sd/inc/TransitionPreset.hxx
index 1d696d515dd7..922901c4d1d0 100644
--- a/sd/inc/TransitionPreset.hxx
+++ b/sd/inc/TransitionPreset.hxx
@@ -70,7 +70,7 @@ private:
     OUString maVariantLabel;
 
     static bool importTransitionsFile( TransitionPresetList& rList,
-                                       css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceFactory,
+                                       css::uno::Reference< css::lang::XMultiServiceFactory > const & xServiceFactory,
                                        const OUString& aFilename );
 };
 
diff --git a/sd/inc/animations.hxx b/sd/inc/animations.hxx
index 4d7755f4ccbf..7d5081c774ef 100644
--- a/sd/inc/animations.hxx
+++ b/sd/inc/animations.hxx
@@ -42,7 +42,7 @@ typedef std::list< AfterEffectNode > AfterEffectNodeList;
 
 /** inserts the animation node in the given AfterEffectNode at the correct position
     in the timing hierarchy of its master */
-SD_DLLPUBLIC void stl_process_after_effect_node_func(AfterEffectNode& rNode);
+SD_DLLPUBLIC void stl_process_after_effect_node_func(AfterEffectNode const & rNode);
 
 } // namespace sd;
 
diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx
index 591fe2fedad1..e0836dcdee7b 100644
--- a/sd/inc/drawdoc.hxx
+++ b/sd/inc/drawdoc.hxx
@@ -177,8 +177,8 @@ private:
     ::std::unique_ptr<ImpMasterPageListWatcher> mpMasterPageListWatcher;
 
     SAL_DLLPRIVATE void                UpdatePageObjectsInNotes(sal_uInt16 nStartPos);
-    SAL_DLLPRIVATE void                UpdatePageRelativeURLs(SdPage* pPage, sal_uInt16 nPos, sal_Int32 nIncrement);
-    SAL_DLLPRIVATE void                FillOnlineSpellingList(SdPage* pPage);
+    SAL_DLLPRIVATE void                UpdatePageRelativeURLs(SdPage const * pPage, sal_uInt16 nPos, sal_Int32 nIncrement);
+    SAL_DLLPRIVATE void                FillOnlineSpellingList(SdPage const * pPage);
     SAL_DLLPRIVATE void                SpellObject(SdrTextObj* pObj);
 
                         DECL_DLLPRIVATE_LINK(WorkStartupHdl, Timer *, void);
@@ -236,7 +236,7 @@ public:
         If a reference document is given, the sizes and border settings of that document are used
         for newly created slides.
     */
-    void   CreateFirstPages( SdDrawDocument* pRefDocument = nullptr );
+    void   CreateFirstPages( SdDrawDocument const * pRefDocument = nullptr );
     bool                CreateMissingNotesAndHandoutPages();
 
     SAL_DLLPRIVATE void                MovePage(sal_uInt16 nPgNum, sal_uInt16 nNewPos) override;
@@ -258,7 +258,7 @@ public:
                             std::vector<OUString> &rExchangeList, bool bLink,
                             bool bReplace, sal_uInt16 nPgPos,
                             ::sd::DrawDocShell* pBookmarkDocSh,
-                            Point* pObjPos);
+                            Point const * pObjPos);
 
     SAL_DLLPRIVATE bool IsStartWithPresentation() const { return mbStartWithPresentation;}
     SAL_DLLPRIVATE void SetStartWithPresentation( bool bStartWithPresentation );
@@ -332,7 +332,7 @@ public:
     SAL_DLLPRIVATE bool InsertBookmarkAsObject(const std::vector<OUString> &rBookmarkList,
                                     const std::vector<OUString> &rExchangeList,
                                     ::sd::DrawDocShell* pBookmarkDocSh,
-                                    Point* pObjPos, bool bCalcObjCount);
+                                    Point const * pObjPos, bool bCalcObjCount);
 
     void   CloseBookmarkDoc();
 
@@ -371,7 +371,7 @@ public:
 
     sal_uInt16 GetActiveSdPageCount() const;
 
-    SAL_DLLPRIVATE sal_uInt16              GetMasterPageUserCount(SdrPage* pMaster) const;
+    SAL_DLLPRIVATE sal_uInt16              GetMasterPageUserCount(SdrPage const * pMaster) const;
 
     SAL_DLLPRIVATE const sd::PresentationSettings& getPresentationSettings() const { return maPresentationSettings; }
     SAL_DLLPRIVATE sd::PresentationSettings& getPresentationSettings() { return maPresentationSettings; }
@@ -408,7 +408,7 @@ public:
     SAL_DLLPRIVATE void                StopOnlineSpelling();
     SAL_DLLPRIVATE void                StartOnlineSpelling(bool bForceSpelling=true);
 
-    SAL_DLLPRIVATE void                ImpOnlineSpellCallback(SpellCallbackInfo* pInfo, SdrObject* pObj, SdrOutliner* pOutl);
+    SAL_DLLPRIVATE void                ImpOnlineSpellCallback(SpellCallbackInfo* pInfo, SdrObject* pObj, SdrOutliner const * pOutl);
 
     SAL_DLLPRIVATE void                InsertObject(SdrObject* pObj);
     SAL_DLLPRIVATE void                RemoveObject(SdrObject* pObj);
@@ -441,7 +441,7 @@ public:
 
     static     SdAnimationInfo* GetShapeUserData(SdrObject& rObject, bool bCreate = false );
 
-    SAL_DLLPRIVATE static SdIMapInfo*  GetIMapInfo( SdrObject* pObject );
+    SAL_DLLPRIVATE static SdIMapInfo*  GetIMapInfo( SdrObject const * pObject );
     SAL_DLLPRIVATE static IMapObject*  GetHitIMapObject( SdrObject* pObject, const Point& rWinPoint );
 
     SAL_DLLPRIVATE CharClass*          GetCharClass() const { return mpCharClass; }
@@ -653,7 +653,7 @@ private:
             page.
     */
     SAL_DLLPRIVATE void SetupNewPage (
-        SdPage* pPreviousPage,
+        SdPage const * pPreviousPage,
         SdPage* pPage,
         const OUString& sPageName,
         sal_uInt16 nInsertionPoint,
diff --git a/sd/inc/notifydocumentevent.hxx b/sd/inc/notifydocumentevent.hxx
index 1a0689834fb2..c16f16c13e5b 100644
--- a/sd/inc/notifydocumentevent.hxx
+++ b/sd/inc/notifydocumentevent.hxx
@@ -24,9 +24,9 @@
 
 class SdDrawDocument;
 
-void NotifyDocumentEvent( SdDrawDocument* pDocument, const OUString& rEventName );
+void NotifyDocumentEvent( SdDrawDocument const * pDocument, const OUString& rEventName );
 
-void NotifyDocumentEvent( SdDrawDocument* pDocument, const OUString& rEventName, const css::uno::Reference< css::uno::XInterface >& xSource );
+void NotifyDocumentEvent( SdDrawDocument const * pDocument, const OUString& rEventName, const css::uno::Reference< css::uno::XInterface >& xSource );
 
 #endif
 
diff --git a/sd/inc/sdmod.hxx b/sd/inc/sdmod.hxx
index 3e50eec0f2f6..397bfc292fb3 100644
--- a/sd/inc/sdmod.hxx
+++ b/sd/inc/sdmod.hxx
@@ -138,7 +138,7 @@ protected:
     virtual void            Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
 
 private:
-    SfxFrame* ExecuteNewDocument( SfxRequest& rReq );
+    SfxFrame* ExecuteNewDocument( SfxRequest const & rReq );
 
     static SfxFrame* CreateEmptyDocument( const css::uno::Reference< css::frame::XFrame >& i_rFrame );
     static SfxFrame* CreateFromTemplate( const OUString& rTemplatePath, const css::uno::Reference< css::frame::XFrame >& i_rFrame );
@@ -151,7 +151,7 @@ private:
             This typically is the unmodified request from a execute()
             function from where this function is called.
     */
-    static bool OutlineToImpress(SfxRequest& rRequest);
+    static bool OutlineToImpress(SfxRequest const & rRequest);
 
     /** Add an eventlistener as soon as possible in sd, allows to use
         remote devices to start the slideshow elegantly, and respecting
diff --git a/sd/inc/sdpage.hxx b/sd/inc/sdpage.hxx
index 4fef9099de04..b4b72390b6bf 100644
--- a/sd/inc/sdpage.hxx
+++ b/sd/inc/sdpage.hxx
@@ -301,7 +301,7 @@ public:
 
         @throws css::uno::RuntimeException
     */
-    void setAnimationNode( css::uno::Reference< css::animations::XAnimationNode >& xNode );
+    void setAnimationNode( css::uno::Reference< css::animations::XAnimationNode > const & xNode );
 
     /// @return a helper class to manipulate effects inside the main sequence
     std::shared_ptr< sd::MainSequence > const & getMainSequence();
@@ -338,10 +338,10 @@ public:
         bool bEdit ) override;
 
     /** callback from the sd::View when a new paragraph for one object on this page is created */
-    void onParagraphInserted( ::Outliner* pOutliner, Paragraph* pPara, SdrObject* pObj );
+    void onParagraphInserted( ::Outliner* pOutliner, Paragraph const * pPara, SdrObject* pObj );
 
     /** callback from the sd::View when a paragraph from one object on this page is removed */
-    void onParagraphRemoving( ::Outliner* pOutliner, Paragraph* pPara, SdrObject* pObj );
+    void onParagraphRemoving( ::Outliner* pOutliner, Paragraph const * pPara, SdrObject* pObj );
 
     /** callback from the sd::View when an object just left text edit mode */
     void onEndTextEdit( SdrObject* pObj );
diff --git a/sd/inc/stlpool.hxx b/sd/inc/stlpool.hxx
index dd412963bd84..90041c847372 100644
--- a/sd/inc/stlpool.hxx
+++ b/sd/inc/stlpool.hxx
@@ -79,9 +79,9 @@ public:
     void                CopyLayoutSheets(const OUString& rLayoutName, SdStyleSheetPool& rSourcePool, SdStyleSheetVector& rCreatedSheets );
     void                CopyGraphicSheets(SdStyleSheetPool& rSourcePool);
     void                CopyCellSheets(SdStyleSheetPool& rSourcePool);
-    void                CopyTableStyles(SdStyleSheetPool& rSourcePool);
+    void                CopyTableStyles(SdStyleSheetPool const & rSourcePool);
     void                CopyCellSheets(SdStyleSheetPool& rSourcePool, SdStyleSheetVector& rCreatedSheets);
-    void                RenameAndCopyGraphicSheets(SdStyleSheetPool& rSourcePool, SdStyleSheetVector& rCreatedSheets, OUString &rRenameSuffix);
+    void                RenameAndCopyGraphicSheets(SdStyleSheetPool& rSourcePool, SdStyleSheetVector& rCreatedSheets, OUString const &rRenameSuffix);
 
     void                CreatePseudosIfNecessary();
     void                UpdateStdNames();
@@ -90,7 +90,7 @@ public:
 
     SdDrawDocument*     GetDoc() const { return mpDoc; }
 
-    static  SdStyleSheetVector CreateChildList( SdStyleSheet* pSheet );
+    static  SdStyleSheetVector CreateChildList( SdStyleSheet const * pSheet );
 
     static void setDefaultOutlineNumberFormatBulletAndIndent(sal_uInt16 i, SvxNumberFormat &rNumberFormat);
 
diff --git a/sd/inc/stlsheet.hxx b/sd/inc/stlsheet.hxx
index 29e6f4a4698b..7d4e29b20466 100644
--- a/sd/inc/stlsheet.hxx
+++ b/sd/inc/stlsheet.hxx
@@ -78,7 +78,7 @@ public:
     //Broadcast that a SdStyleSheet has changed, taking into account outline sublevels
     //which need to be explicitly broadcast as changing if their parent style was
     //the one that changed
-    static void BroadcastSdStyleSheetChange(SfxStyleSheetBase* pStyleSheet, PresentationObjects ePO,
+    static void BroadcastSdStyleSheetChange(SfxStyleSheetBase const * pStyleSheet, PresentationObjects ePO,
         SfxStyleSheetBasePool* pSSPool);
 
     // XInterface
diff --git a/sd/inc/textapi.hxx b/sd/inc/textapi.hxx
index 02240acffcf2..32c89a9bbe30 100644
--- a/sd/inc/textapi.hxx
+++ b/sd/inc/textapi.hxx
@@ -46,7 +46,7 @@ public:
     void SAL_CALL dispose();
 
     OutlinerParaObject* CreateText();
-    void                SetText( OutlinerParaObject& rText );
+    void                SetText( OutlinerParaObject const & rText );
     OUString            GetText();
 
     static TextApiObject* getImplementation( const css::uno::Reference< css::text::XText >& );
diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx
index dab76b1dde7d..33d4a5a711f8 100644
--- a/sd/qa/unit/import-tests.cxx
+++ b/sd/qa/unit/import-tests.cxx
@@ -165,7 +165,7 @@ public:
     void testSmartArt1();
     void testTdf109223();
 
-    bool checkPattern(sd::DrawDocShellRef& rDocRef, int nShapeNumber, std::vector<sal_uInt8>& rExpected);
+    bool checkPattern(sd::DrawDocShellRef const & rDocRef, int nShapeNumber, std::vector<sal_uInt8>& rExpected);
     void testPatternImport();
 
     CPPUNIT_TEST_SUITE(SdImportTest);
@@ -1856,7 +1856,7 @@ bool checkPatternValues(std::vector<sal_uInt8>& rExpected, Bitmap& rBitmap)
 
 } // end anonymous namespace
 
-bool SdImportTest::checkPattern(sd::DrawDocShellRef& rDocRef, int nShapeNumber, std::vector<sal_uInt8>& rExpected)
+bool SdImportTest::checkPattern(sd::DrawDocShellRef const & rDocRef, int nShapeNumber, std::vector<sal_uInt8>& rExpected)
 {
     uno::Reference<beans::XPropertySet> xShape(getShapeFromPage(nShapeNumber, 0, rDocRef));
     CPPUNIT_ASSERT_MESSAGE("Not a shape", xShape.is());
diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx
index 52e3e52f5145..451debc49a45 100644
--- a/sd/source/core/CustomAnimationEffect.cxx
+++ b/sd/source/core/CustomAnimationEffect.cxx
@@ -1929,7 +1929,7 @@ bool stl_CustomAnimationEffect_search_node_predict::operator()( const CustomAnim
 }
 
 /// @throws Exception
-static bool implFindNextContainer( Reference< XTimeContainer >& xParent, Reference< XTimeContainer >& xCurrent, Reference< XTimeContainer >& xNext )
+static bool implFindNextContainer( Reference< XTimeContainer > const & xParent, Reference< XTimeContainer > const & xCurrent, Reference< XTimeContainer >& xNext )
 {
     Reference< XEnumerationAccess > xEnumerationAccess( xParent, UNO_QUERY_THROW );
     Reference< XEnumeration > xEnumeration( xEnumerationAccess->createEnumeration() );
@@ -1948,7 +1948,7 @@ static bool implFindNextContainer( Reference< XTimeContainer >& xParent, Referen
     return xNext.is();
 }
 
-void stl_process_after_effect_node_func(AfterEffectNode& rNode)
+void stl_process_after_effect_node_func(AfterEffectNode const & rNode)
 {
     try
     {
@@ -2238,7 +2238,7 @@ void CustomAnimationTextGroup::reset()
     maEffects.clear();
 }
 
-void CustomAnimationTextGroup::addEffect( CustomAnimationEffectPtr& pEffect )
+void CustomAnimationTextGroup::addEffect( CustomAnimationEffectPtr const & pEffect )
 {
     maEffects.push_back( pEffect );
 
diff --git a/sd/source/core/EffectMigration.cxx b/sd/source/core/EffectMigration.cxx
index 11158e8c017b..1bda3529685e 100644
--- a/sd/source/core/EffectMigration.cxx
+++ b/sd/source/core/EffectMigration.cxx
@@ -390,7 +390,7 @@ const deprecated_AnimationEffect_conversion_table[] =
     { AnimationEffect_NONE, nullptr, nullptr }
 };
 
-EffectSequence::iterator ImplFindEffect( MainSequencePtr& pMainSequence, const Reference< XShape >& rShape, sal_Int16 nSubItem )
+EffectSequence::iterator ImplFindEffect( MainSequencePtr const & pMainSequence, const Reference< XShape >& rShape, sal_Int16 nSubItem )
 {
     EffectSequence::iterator aIter;
 
@@ -404,7 +404,7 @@ EffectSequence::iterator ImplFindEffect( MainSequencePtr& pMainSequence, const R
     return aIter;
 }
 
-static bool implIsInsideGroup( SdrObject* pObj )
+static bool implIsInsideGroup( SdrObject const * pObj )
 {
     return pObj && pObj->GetObjList() && pObj->GetObjList()->GetUpList();
 }
@@ -1203,7 +1203,7 @@ sal_Int32 EffectMigration::GetPresentationOrder( SvxShape* pShape )
     return nFound;
 }
 
-void EffectMigration::UpdateSoundEffect( SvxShape* pShape, SdAnimationInfo* pInfo )
+void EffectMigration::UpdateSoundEffect( SvxShape* pShape, SdAnimationInfo const * pInfo )
 {
     if( pInfo )
     {
@@ -1277,7 +1277,7 @@ bool EffectMigration::GetSoundOn( SvxShape* pShape )
     return !GetSoundFile( pShape ).isEmpty();
 }
 
-void EffectMigration::SetAnimationPath( SvxShape* pShape, SdrPathObj* pPathObj )
+void EffectMigration::SetAnimationPath( SvxShape* pShape, SdrPathObj const * pPathObj )
 {
     if( pShape && pPathObj )
     {
@@ -1298,7 +1298,7 @@ void EffectMigration::SetAnimationPath( SvxShape* pShape, SdrPathObj* pPathObj )
 }
 
 // #i42894# helper which creates the needed XAnimate for changing visibility and all the (currently) needed embeddings
-void createVisibilityOnOffNode(Reference< XTimeContainer >& rxParentContainer, SdrObject& rCandidate, bool bVisible, bool bOnClick, double fDuration)
+void createVisibilityOnOffNode(Reference< XTimeContainer > const & rxParentContainer, SdrObject& rCandidate, bool bVisible, bool bOnClick, double fDuration)
 {
     Reference< XMultiServiceFactory > xMsf(::comphelper::getProcessServiceFactory());
 
@@ -1356,7 +1356,7 @@ void createVisibilityOnOffNode(Reference< XTimeContainer >& rxParentContainer, S
 // fallback will create the needed SMIL animation stuff. Unfortunately the members of the group
 // have to be moved directly to the page, else the (explained to be generic, thus I expected this to
 // work) animations will not work in slideshow
-void EffectMigration::CreateAnimatedGroup(SdrObjGroup& rGroupObj, SdPage& rPage)
+void EffectMigration::CreateAnimatedGroup(SdrObjGroup const & rGroupObj, SdPage& rPage)
 {
     // aw080 will give a vector immediately
     SdrObjListIter aIter(rGroupObj);
diff --git a/sd/source/core/TransitionPreset.cxx b/sd/source/core/TransitionPreset.cxx
index 17496dd95972..766fd6931f4c 100644
--- a/sd/source/core/TransitionPreset.cxx
+++ b/sd/source/core/TransitionPreset.cxx
@@ -87,7 +87,7 @@ TransitionPreset::TransitionPreset( const css::uno::Reference< css::animations::
 }
 
 bool TransitionPreset::importTransitionsFile( TransitionPresetList& rList,
-                                              Reference< XMultiServiceFactory >& xServiceFactory,
+                                              Reference< XMultiServiceFactory > const & xServiceFactory,
                                               const OUString& aURL )
 {
     SAL_INFO("sd.transitions", "Importing " << aURL);
diff --git a/sd/source/core/annotations/Annotation.cxx b/sd/source/core/annotations/Annotation.cxx
index 96d31feb2204..ebee78520f2b 100644
--- a/sd/source/core/annotations/Annotation.cxx
+++ b/sd/source/core/annotations/Annotation.cxx
@@ -412,7 +412,7 @@ const SdPage* getAnnotationPage(const Reference<XAnnotation>& xAnnotation)
 
 namespace
 {
-std::string lcl_LOKGetCommentPayload(CommentNotificationType nType, Reference<XAnnotation>& rxAnnotation)
+std::string lcl_LOKGetCommentPayload(CommentNotificationType nType, Reference<XAnnotation> const & rxAnnotation)
 {
     boost::property_tree::ptree aAnnotation;
     aAnnotation.put("action", (nType == CommentNotificationType::Add ? "Add" :
@@ -439,7 +439,7 @@ std::string lcl_LOKGetCommentPayload(CommentNotificationType nType, Reference<XA
 }
 } // anonymous ns
 
-void LOKCommentNotify(CommentNotificationType nType, const SfxViewShell* pViewShell, Reference<XAnnotation>& rxAnnotation)
+void LOKCommentNotify(CommentNotificationType nType, const SfxViewShell* pViewShell, Reference<XAnnotation> const & rxAnnotation)
 {
     // callbacks only if tiled annotations are explicitly turned off by LOK client
     if (!comphelper::LibreOfficeKit::isActive() || comphelper::LibreOfficeKit::isTiledAnnotations())
@@ -449,7 +449,7 @@ void LOKCommentNotify(CommentNotificationType nType, const SfxViewShell* pViewSh
     pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_COMMENT, aPayload.c_str());
 }
 
-void LOKCommentNotifyAll(CommentNotificationType nType, Reference<XAnnotation>& rxAnnotation)
+void LOKCommentNotifyAll(CommentNotificationType nType, Reference<XAnnotation> const & rxAnnotation)
 {
     // callbacks only if tiled annotations are explicitly turned off by LOK client
     if (!comphelper::LibreOfficeKit::isActive() || comphelper::LibreOfficeKit::isTiledAnnotations())
diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx
index 5c8b25cf8b27..ea68d0694a08 100644
--- a/sd/source/core/drawdoc2.cxx
+++ b/sd/source/core/drawdoc2.cxx
@@ -322,7 +322,7 @@ void SdDrawDocument::UpdatePageRelativeURLs(const OUString& rOldName, const OUSt
     }
 }
 
-void SdDrawDocument::UpdatePageRelativeURLs(SdPage* pPage, sal_uInt16 nPos, sal_Int32 nIncrement)
+void SdDrawDocument::UpdatePageRelativeURLs(SdPage const * pPage, sal_uInt16 nPos, sal_Int32 nIncrement)
 {
     bool bNotes = (pPage->GetPageKind() == PageKind::Notes);
 
@@ -515,7 +515,7 @@ void SdDrawDocument::SetSelected(SdPage* pPage, bool bSelect)
 }
 
 // If no pages exist yet, create them now
-void SdDrawDocument::CreateFirstPages( SdDrawDocument* pRefDocument /* = 0 */ )
+void SdDrawDocument::CreateFirstPages( SdDrawDocument const * pRefDocument /* = 0 */ )
 {
     // If no page exists yet in the model, (File -> New), insert a page
     sal_uInt16 nPageCount = GetPageCount();
@@ -1011,7 +1011,7 @@ SdAnimationInfo* SdDrawDocument::GetShapeUserData(SdrObject& rObject, bool bCrea
     return pRet;
 }
 
-SdIMapInfo* SdDrawDocument::GetIMapInfo( SdrObject* pObject )
+SdIMapInfo* SdDrawDocument::GetIMapInfo( SdrObject const * pObject )
 {
     DBG_ASSERT(pObject, "Without an object there is no IMapInfo");
 
@@ -1466,7 +1466,7 @@ sal_uInt16 SdDrawDocument::InsertPageSet (
 }
 
 void SdDrawDocument::SetupNewPage (
-    SdPage* pPreviousPage,
+    SdPage const * pPreviousPage,
     SdPage* pPage,
     const OUString& sPageName,
     sal_uInt16 nInsertionPoint,
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index 90049120dd9e..a567d700c099 100644
--- a/sd/source/core/drawdoc3.cxx
+++ b/sd/source/core/drawdoc3.cxx
@@ -74,12 +74,12 @@ class InsertBookmarkAsPage_FindDuplicateLayouts
 public:
     explicit InsertBookmarkAsPage_FindDuplicateLayouts( std::vector<OUString> &rLayoutsToTransfer )
         : mrLayoutsToTransfer(rLayoutsToTransfer) {}
-    void operator()( SdDrawDocument&, SdPage*, bool, SdDrawDocument* );
+    void operator()( SdDrawDocument&, SdPage const *, bool, SdDrawDocument* );
 private:
     std::vector<OUString> &mrLayoutsToTransfer;
 };
 
-void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc, SdPage* pBMMPage, bool bRenameDuplicates, SdDrawDocument* pBookmarkDoc )
+void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc, SdPage const * pBMMPage, bool bRenameDuplicates, SdDrawDocument* pBookmarkDoc )
 {
     // now check for duplicate masterpage and layout names
 
@@ -284,7 +284,7 @@ void SdDrawDocument::InsertBookmark(
     bool bReplace,                                  // Replace current default and notes pages?
     sal_uInt16 nInsertPos,                          // Insertion position of pages
     ::sd::DrawDocShell* pBookmarkDocSh,             // If set, this is the source document
-    Point* pObjPos)                                 // Insertion position of objects
+    Point const * pObjPos)                                 // Insertion position of objects
 {
     bool bOK = true;
     bool bInsertPages = false;
@@ -977,7 +977,7 @@ bool SdDrawDocument::InsertBookmarkAsObject(
     const std::vector<OUString> &rBookmarkList,
     const std::vector<OUString> &rExchangeList,            // List of names to use
     ::sd::DrawDocShell* pBookmarkDocSh,
-    Point* pObjPos,
+    Point const * pObjPos,
     bool bCalcObjCount)
 {
     bool bOK = true;
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx
index 7870ff056f3a..e667d7eb8337 100644
--- a/sd/source/core/drawdoc4.cxx
+++ b/sd/source/core/drawdoc4.cxx
@@ -693,7 +693,7 @@ void SdDrawDocument::CreateDefaultCellStyles()
 }
 
 // Number of pages that reference a master page
-sal_uInt16 SdDrawDocument::GetMasterPageUserCount(SdrPage* pMaster) const
+sal_uInt16 SdDrawDocument::GetMasterPageUserCount(SdrPage const * pMaster) const
 {
     sal_uInt16 nResult = 0;
     sal_uInt16 nPage;
@@ -774,7 +774,7 @@ void SdDrawDocument::StartOnlineSpelling(bool bForceSpelling)
 }
 
 // Fill OnlineSpelling list
-void SdDrawDocument::FillOnlineSpellingList(SdPage* pPage)
+void SdDrawDocument::FillOnlineSpellingList(SdPage const * pPage)
 {
     SdrObjListIter aIter(*pPage, SdrIterMode::Flat);
 
@@ -957,7 +957,7 @@ IMPL_LINK(SdDrawDocument, OnlineSpellEventHdl, EditStatus&, rEditStat, void)
 // Callback for ExecuteSpellPopup()
 
 // removed link and replaced with Imp method
-void SdDrawDocument::ImpOnlineSpellCallback(SpellCallbackInfo* pInfo, SdrObject* pObj, SdrOutliner* pOutl)
+void SdDrawDocument::ImpOnlineSpellCallback(SpellCallbackInfo* pInfo, SdrObject* pObj, SdrOutliner const * pOutl)
 {
     delete mpOnlineSearchItem;
     mpOnlineSearchItem = nullptr;
diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx
index 5156ca1b4272..392be76b07ed 100644
--- a/sd/source/core/sdpage.cxx
+++ b/sd/source/core/sdpage.cxx
@@ -146,7 +146,7 @@ SdPage::SdPage(SdDrawDocument& rNewDoc, bool bMasterPage)
 
 namespace
 {
-    void clearChildNodes(css::uno::Reference<css::animations::XAnimationNode>& rAnimationNode)
+    void clearChildNodes(css::uno::Reference<css::animations::XAnimationNode> const & rAnimationNode)
     {
         css::uno::Reference<css::container::XEnumerationAccess > xEnumerationAccess(rAnimationNode, UNO_QUERY);
         if (!xEnumerationAccess.is())
@@ -190,7 +190,7 @@ SdPage::~SdPage()
 
 struct OrdNumSorter
 {
-    bool operator()( SdrObject* p1, SdrObject* p2 )
+    bool operator()( SdrObject const * p1, SdrObject const * p2 )
     {
         return p1->GetOrdNum() < p2->GetOrdNum();
     }
@@ -1340,7 +1340,7 @@ rtl::OUString enumtoString(AutoLayout aut)
     return retstr;
 }
 
-static void CalcAutoLayoutRectangles( SdPage& rPage,::tools::Rectangle* rRectangle ,const rtl::OUString& sLayoutType )
+static void CalcAutoLayoutRectangles( SdPage const & rPage,::tools::Rectangle* rRectangle ,const rtl::OUString& sLayoutType )
 {
     ::tools::Rectangle aTitleRect;
     ::tools::Rectangle aLayoutRect;
diff --git a/sd/source/core/sdpage_animations.cxx b/sd/source/core/sdpage_animations.cxx
index c5a3bc043cee..3ce92cb30a93 100644
--- a/sd/source/core/sdpage_animations.cxx
+++ b/sd/source/core/sdpage_animations.cxx
@@ -60,7 +60,7 @@ Reference< XAnimationNode > const & SdPage::getAnimationNode()
     return mxAnimationNode;
 }
 
-void SdPage::setAnimationNode( Reference< XAnimationNode >& xNode )
+void SdPage::setAnimationNode( Reference< XAnimationNode > const & xNode )
 {
     mxAnimationNode = xNode;
     if( mpMainSequence.get() )
@@ -97,7 +97,7 @@ FadeEffect SdPage::GetFadeEffect() const
 }
 
 /** callback from the sd::View when a new paragraph for one object on this page is created */
-void SdPage::onParagraphInserted( ::Outliner* pOutliner, Paragraph* pPara, SdrObject* pObj )
+void SdPage::onParagraphInserted( ::Outliner* pOutliner, Paragraph const * pPara, SdrObject* pObj )
 {
     if( mxAnimationNode.is() )
     {
@@ -112,7 +112,7 @@ void SdPage::onParagraphInserted( ::Outliner* pOutliner, Paragraph* pPara, SdrOb
 }
 
 /** callback from the sd::View when a paragraph from one object on this page is removed */
-void SdPage::onParagraphRemoving( ::Outliner* pOutliner, Paragraph* pPara, SdrObject* pObj )
+void SdPage::onParagraphRemoving( ::Outliner* pOutliner, Paragraph const * pPara, SdrObject* pObj )
 {
     if( mxAnimationNode.is() )
     {
diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx
index 8d3d3b697b7b..8065d00a9bf4 100644
--- a/sd/source/core/stlpool.cxx
+++ b/sd/source/core/stlpool.cxx
@@ -79,7 +79,7 @@ using namespace ::com::sun::star::container;
 namespace
 {
 
-OUString lcl_findRenamedStyleName(std::vector< std::pair< OUString, OUString > > &rRenamedList, OUString& aOriginalName )
+OUString lcl_findRenamedStyleName(std::vector< std::pair< OUString, OUString > > &rRenamedList, OUString const & aOriginalName )
 {
     std::vector< std::pair< OUString, OUString > >::iterator aIter;
     for( aIter = rRenamedList.begin(); aIter != rRenamedList.end(); ++aIter )
@@ -529,7 +529,7 @@ void SdStyleSheetPool::CopyCellSheets(SdStyleSheetPool& rSourcePool)
     CopySheets( rSourcePool, SD_STYLE_FAMILY_CELL );
 }
 
-void SdStyleSheetPool::CopyTableStyles(SdStyleSheetPool& rSourcePool)
+void SdStyleSheetPool::CopyTableStyles(SdStyleSheetPool const & rSourcePool)
 {
     Reference< XIndexAccess > xSource( rSourcePool.mxTableFamily, UNO_QUERY );
     Reference< XNameContainer > xTarget( mxTableFamily, UNO_QUERY );
@@ -591,7 +591,7 @@ void SdStyleSheetPool::CopyCellSheets(SdStyleSheetPool& rSourcePool, SdStyleShee
     CopySheets( rSourcePool, SD_STYLE_FAMILY_CELL, rCreatedSheets );
 }
 
-void SdStyleSheetPool::RenameAndCopyGraphicSheets(SdStyleSheetPool& rSourcePool, SdStyleSheetVector& rCreatedSheets, OUString &rRenameSuffix)
+void SdStyleSheetPool::RenameAndCopyGraphicSheets(SdStyleSheetPool& rSourcePool, SdStyleSheetVector& rCreatedSheets, OUString const &rRenameSuffix)
 {
     CopySheets( rSourcePool, SD_STYLE_FAMILY_GRAPHICS, rCreatedSheets, rRenameSuffix );
 }
@@ -1397,7 +1397,7 @@ void SAL_CALL SdStyleSheetPool::removeEventListener( const Reference< XEventList
 {
 }
 
-SdStyleSheetVector SdStyleSheetPool::CreateChildList( SdStyleSheet* pSheet )
+SdStyleSheetVector SdStyleSheetPool::CreateChildList( SdStyleSheet const * pSheet )
 {
     SdStyleSheetVector aResult;
 
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index 99639f66e672..cbf3475fd9a1 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -1309,10 +1309,10 @@ const SfxItemPropertySimpleEntry* SdStyleSheet::getPropertyMapEntry( const OUStr
 //Broadcast that a SdStyleSheet has changed, taking into account outline sublevels
 //which need to be explicitly broadcast as changing if their parent style was
 //the one that changed
-void SdStyleSheet::BroadcastSdStyleSheetChange(SfxStyleSheetBase* pStyleSheet,
+void SdStyleSheet::BroadcastSdStyleSheetChange(SfxStyleSheetBase const * pStyleSheet,
     PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool)
 {
-    SdStyleSheet* pRealSheet = static_cast<SdStyleSheet*>(pStyleSheet)->GetRealStyleSheet();
+    SdStyleSheet* pRealSheet = static_cast<SdStyleSheet const *>(pStyleSheet)->GetRealStyleSheet();
     pRealSheet->Broadcast(SfxHint(SfxHintId::DataChanged));
 
     if( (ePO >= PO_OUTLINE_1) && (ePO <= PO_OUTLINE_8) )
diff --git a/sd/source/core/text/textapi.cxx b/sd/source/core/text/textapi.cxx
index 11537e656673..782eee7bd46d 100644
--- a/sd/source/core/text/textapi.cxx
+++ b/sd/source/core/text/textapi.cxx
@@ -102,7 +102,7 @@ public:
     explicit            TextAPIEditSource(SdDrawDocument* pDoc);
 
     void                Dispose();
-    void                SetText( OutlinerParaObject& rText );
+    void                SetText( OutlinerParaObject const & rText );
     OutlinerParaObject* CreateText();
     OUString            GetText();
     SdDrawDocument*     GetDoc() { return m_xImpl->mpDoc; }
@@ -160,7 +160,7 @@ OutlinerParaObject* TextApiObject::CreateText()
     return mpSource->CreateText();
 }
 
-void TextApiObject::SetText( OutlinerParaObject& rText )
+void TextApiObject::SetText( OutlinerParaObject const & rText )
 {
     SdrModel* pModel = mpSource->GetDoc();
     if( pModel && pModel->IsUndoEnabled() )
@@ -237,7 +237,7 @@ SvxTextForwarder* TextAPIEditSource::GetTextForwarder()
     return m_xImpl->mpTextForwarder;
 }
 
-void TextAPIEditSource::SetText( OutlinerParaObject& rText )
+void TextAPIEditSource::SetText( OutlinerParaObject const & rText )
 {
     if (m_xImpl->mpDoc)
     {
diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx
index b5754b73064e..ffcbd606cf03 100644
--- a/sd/source/filter/eppt/eppt.cxx
+++ b/sd/source/filter/eppt/eppt.cxx
@@ -72,9 +72,9 @@ using ::com::sun::star::beans::XPropertySet;
 
 //============================ PPTWriter ==================================
 
-PPTWriter::PPTWriter( tools::SvRef<SotStorage>& rSvStorage,
-            css::uno::Reference< css::frame::XModel > & rXModel,
-            css::uno::Reference< css::task::XStatusIndicator > & rXStatInd,
+PPTWriter::PPTWriter( tools::SvRef<SotStorage> const & rSvStorage,
+            css::uno::Reference< css::frame::XModel > const & rXModel,
+            css::uno::Reference< css::task::XStatusIndicator > const & rXStatInd,
             SvMemoryStream* pVBA, sal_uInt32 nCnvrtFlags ) :
     PPTWriterBase           ( rXModel, rXStatInd ),
     mnCnvrtFlags            ( nCnvrtFlags ),
@@ -553,7 +553,7 @@ void PPTWriter::ImplWriteExtParaHeader( SvMemoryStream& rSt, sal_uInt32 nRef, sa
     }
 }
 
-void PPTWriter::ImplCreateHeaderFooterStrings( SvStream& rStrm, css::uno::Reference< css::beans::XPropertySet >& rXPagePropSet )
+void PPTWriter::ImplCreateHeaderFooterStrings( SvStream& rStrm, css::uno::Reference< css::beans::XPropertySet > const & rXPagePropSet )
 {
     if ( rXPagePropSet.is() )
     {
@@ -577,7 +577,7 @@ void PPTWriter::ImplCreateHeaderFooterStrings( SvStream& rStrm, css::uno::Refere
     }
 }
 
-void PPTWriter::ImplCreateHeaderFooters( css::uno::Reference< css::beans::XPropertySet >& rXPagePropSet )
+void PPTWriter::ImplCreateHeaderFooters( css::uno::Reference< css::beans::XPropertySet > const & rXPagePropSet )
 {
     if ( rXPagePropSet.is() )
     {
@@ -1426,9 +1426,9 @@ bool PPTWriter::ImplWriteAtomEnding()
 // - exported function -
 
 extern "C" SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL ExportPPT( const std::vector< css::beans::PropertyValue >& rMediaData,
-                    tools::SvRef<SotStorage>& rSvStorage,
-                    css::uno::Reference< css::frame::XModel > & rXModel,
-                    css::uno::Reference< css::task::XStatusIndicator > & rXStatInd,
+                    tools::SvRef<SotStorage> const & rSvStorage,
+                    css::uno::Reference< css::frame::XModel > const & rXModel,
+                    css::uno::Reference< css::task::XStatusIndicator > const & rXStatInd,
                     SvMemoryStream* pVBA,
                     sal_uInt32 nCnvrtFlags )
 {
diff --git a/sd/source/filter/eppt/eppt.hxx b/sd/source/filter/eppt/eppt.hxx
index 076548084987..dd342569566c 100644
--- a/sd/source/filter/eppt/eppt.hxx
+++ b/sd/source/filter/eppt/eppt.hxx
@@ -137,8 +137,8 @@ struct TextRuleEntry
 class TextObjBinary : public TextObj
 {
 public:
-    TextObjBinary( css::uno::Reference< css::text::XSimpleText > &
-                   rXText, int nInstance, FontCollection& rFontCollection, PPTExBulletProvider& rBuProv ) : TextObj( rXText, nInstance, rFontCollection, rBuProv ) {}
+    TextObjBinary( css::uno::Reference< css::text::XSimpleText > const & rXText,
+                   int nInstance, FontCollection& rFontCollection, PPTExBulletProvider& rBuProv ) : TextObj( rXText, nInstance, rFontCollection, rBuProv ) {}
     void            Write( SvStream* pStrm );
     void            WriteTextSpecInfo( SvStream* pStrm );
 };
@@ -204,8 +204,8 @@ class PPTWriter : public PPTWriterBase, public PPTExBulletProvider
         bool                ImplCreateDocumentSummaryInformation();
         bool                ImplCreateCurrentUserStream();
         static void         ImplCreateHeaderFooterStrings( SvStream& rOut,
-                                css::uno::Reference< css::beans::XPropertySet >& rXPagePropSet );
-        void                ImplCreateHeaderFooters( css::uno::Reference< css::beans::XPropertySet >& rXPagePropSet );
+                                css::uno::Reference< css::beans::XPropertySet > const & rXPagePropSet );
+        void                ImplCreateHeaderFooters( css::uno::Reference< css::beans::XPropertySet > const & rXPagePropSet );
         virtual bool        ImplCreateDocument() override;
         void                ImplCreateHyperBlob( SvMemoryStream& rStream );
         sal_uInt32          ImplInsertBookmarkURL( const OUString& rBookmark, const sal_uInt32 nType,
@@ -239,7 +239,7 @@ class PPTWriter : public PPTWriterBase, public PPTExBulletProvider
                                            bool bMaster,
                                            int nPageNumber = 0 );
         bool                ImplCreateCellBorder( const CellBorder* pCellBorder, sal_Int32 nX1, sal_Int32 nY1, sal_Int32 nX2, sal_Int32 nY2 );
-        void                ImplCreateTable( css::uno::Reference< css::drawing::XShape >& rXShape, EscherSolverContainer& aSolverContainer,
+        void                ImplCreateTable( css::uno::Reference< css::drawing::XShape > const & rXShape, EscherSolverContainer& aSolverContainer,
                                 EscherPropertyContainer& aPropOpt );
 
         bool                ImplCloseDocument();        // we write the font, hyper and sound list
@@ -250,9 +250,9 @@ class PPTWriter : public PPTWriterBase, public PPTExBulletProvider
         virtual void        ImplWriteSlideMaster( sal_uInt32 nPageNum, css::uno::Reference< css::beans::XPropertySet > const & aXBackgroundPropSet ) override;
 
     public:
-                                PPTWriter( tools::SvRef<SotStorage>& rSvStorage,
-                                            css::uno::Reference< css::frame::XModel > & rModel,
-                                            css::uno::Reference< css::task::XStatusIndicator > & rStatInd,
+                                PPTWriter( tools::SvRef<SotStorage> const & rSvStorage,
+                                            css::uno::Reference< css::frame::XModel > const & rModel,
+                                            css::uno::Reference< css::task::XStatusIndicator > const & rStatInd,
                                             SvMemoryStream* pVBA, sal_uInt32 nCnvrtFlags );
 
                                 virtual ~PPTWriter() override;
diff --git a/sd/source/filter/eppt/epptooxml.hxx b/sd/source/filter/eppt/epptooxml.hxx
index aa27ad8adf19..41f7b393bf53 100644
--- a/sd/source/filter/eppt/epptooxml.hxx
+++ b/sd/source/filter/eppt/epptooxml.hxx
@@ -99,7 +99,7 @@ protected:
 
     static void WriteAnimateTo( const ::sax_fastparser::FSHelperPtr& pFS, const css::uno::Any& rValue, const OUString& rAttributeName );
     static void WriteAnimateValues( const ::sax_fastparser::FSHelperPtr& pFS, const css::uno::Reference< css::animations::XAnimate >& rXAnimate );
-    static void WriteAnimationCondition( const ::sax_fastparser::FSHelperPtr& pFS, css::uno::Any& rAny, bool bWriteEvent, bool bMainSeqChild );
+    static void WriteAnimationCondition( const ::sax_fastparser::FSHelperPtr& pFS, css::uno::Any const & rAny, bool bWriteEvent, bool bMainSeqChild );
     static void WriteAnimationCondition( const ::sax_fastparser::FSHelperPtr& pFS, const char* pDelay, const char* pEvent, double fDelay, bool bHasFDelay );
     void WriteAnimations( const ::sax_fastparser::FSHelperPtr& pFS );
     static void WriteAnimationAttributeName( const ::sax_fastparser::FSHelperPtr& pFS, const OUString& rAttributeName );
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx
index 80727694b15f..d05734aecdb4 100644
--- a/sd/source/filter/eppt/epptso.cxx
+++ b/sd/source/filter/eppt/epptso.cxx
@@ -2961,7 +2961,7 @@ bool PPTWriter::ImplCreateCellBorder( const CellBorder* pCellBorder, sal_Int32 n
 sal_Int32 GetCellRight( sal_Int32 nColumn,
     ::tools::Rectangle& rect,
     std::vector< std::pair< sal_Int32, sal_Int32 > >& aColumns,
-    uno::Reference< table::XMergeableCell >& xCell )
+    uno::Reference< table::XMergeableCell > const & xCell )
 {
     sal_Int32 nRight = aColumns[ nColumn ].first + aColumns[ nColumn ].second;
     for ( sal_Int32 nColumnSpan = 1; nColumnSpan < xCell->getColumnSpan(); nColumnSpan++ )
@@ -2978,7 +2978,7 @@ sal_Int32 GetCellRight( sal_Int32 nColumn,
 sal_Int32 GetCellBottom( sal_Int32 nRow,
     ::tools::Rectangle& rect,
     std::vector< std::pair< sal_Int32, sal_Int32 > >& aRows,
-    uno::Reference< table::XMergeableCell >& xCell )
+    uno::Reference< table::XMergeableCell > const & xCell )
 {
     sal_Int32 nBottom = aRows[nRow].first + aRows[nRow].second;
     for ( sal_Int32 nRowSpan = 1; nRowSpan < xCell->getRowSpan(); nRowSpan++ )
@@ -3020,7 +3020,7 @@ public:
     }
 };
 
-void PPTWriter::ImplCreateTable( uno::Reference< drawing::XShape >& rXShape, EscherSolverContainer& aSolverContainer,
+void PPTWriter::ImplCreateTable( uno::Reference< drawing::XShape > const & rXShape, EscherSolverContainer& aSolverContainer,
                                 EscherPropertyContainer& aPropOpt )
 {
     try
diff --git a/sd/source/filter/eppt/escherex.cxx b/sd/source/filter/eppt/escherex.cxx
index a5a950147e1d..dc8844a87f76 100644
--- a/sd/source/filter/eppt/escherex.cxx
+++ b/sd/source/filter/eppt/escherex.cxx
@@ -203,7 +203,7 @@ void PptEscherEx::CloseContainer()
     }
 }
 
-sal_uInt32 PptEscherEx::EnterGroup( ::tools::Rectangle* pBoundRect, SvMemoryStream* pClientData )
+sal_uInt32 PptEscherEx::EnterGroup( ::tools::Rectangle const * pBoundRect, SvMemoryStream* pClientData )
 {
     sal_uInt32 nShapeId = 0;
     /* SJ: #Issue 26747#
diff --git a/sd/source/filter/eppt/escherex.hxx b/sd/source/filter/eppt/escherex.hxx
index d03c987282ea..58b48fa7379d 100644
--- a/sd/source/filter/eppt/escherex.hxx
+++ b/sd/source/filter/eppt/escherex.hxx
@@ -54,7 +54,7 @@ class PptEscherEx : public EscherEx
         void    OpenContainer( sal_uInt16 n_EscherContainer, int nRecInstance = 0 ) override;
         void    CloseContainer() override;
 
-        sal_uInt32 EnterGroup( ::tools::Rectangle* pBoundRect, SvMemoryStream* pClientData );
+        sal_uInt32 EnterGroup( ::tools::Rectangle const * pBoundRect, SvMemoryStream* pClientData );
 
         sal_uInt32  DrawingGroupContainerSize();
         void    WriteDrawingGroupContainer( SvStream& rSt );
diff --git a/sd/source/filter/eppt/grouptable.hxx b/sd/source/filter/eppt/grouptable.hxx
index 09139fcf1888..d792072479cb 100644
--- a/sd/source/filter/eppt/grouptable.hxx
+++ b/sd/source/filter/eppt/grouptable.hxx
@@ -30,7 +30,7 @@ struct GroupEntry
     sal_uInt32                  mnCount;
     css::uno::Reference< css::container::XIndexAccess >           mXIndexAccess;
 
-    explicit GroupEntry( css::uno::Reference< css::container::XIndexAccess > & rIndex )
+    explicit GroupEntry( css::uno::Reference< css::container::XIndexAccess > const & rIndex )
     {
         mXIndexAccess = rIndex;
         mnCount =mXIndexAccess->getCount();
@@ -62,7 +62,7 @@ class GroupTable
         sal_uInt32              GetGroupsClosed();
         void                    ResetGroupTable( sal_uInt32 nCount );
         void                    ClearGroupTable();
-        bool                    EnterGroup( css::uno::Reference< css::container::XIndexAccess > & rIndex );
+        bool                    EnterGroup( css::uno::Reference< css::container::XIndexAccess > const & rIndex );
         bool                    GetNextGroupEntry();
                                 GroupTable();
                                 ~GroupTable();
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx
index ebf122d8a34c..338da53bb7a1 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -1027,7 +1027,7 @@ void PowerPointExport::WriteAnimationCondition( const FSHelperPtr& pFS, const ch
     }
 }
 
-void PowerPointExport::WriteAnimationCondition( const FSHelperPtr& pFS, Any& rAny, bool bWriteEvent, bool bMainSeqChild )
+void PowerPointExport::WriteAnimationCondition( const FSHelperPtr& pFS, Any const & rAny, bool bWriteEvent, bool bMainSeqChild )
 {
     bool bHasFDelay = false;
     double fDelay = 0;
diff --git a/sd/source/filter/eppt/pptx-grouptable.cxx b/sd/source/filter/eppt/pptx-grouptable.cxx
index 98105a7e6fb6..1f743df45911 100644
--- a/sd/source/filter/eppt/pptx-grouptable.cxx
+++ b/sd/source/filter/eppt/pptx-grouptable.cxx
@@ -32,7 +32,7 @@ GroupTable::~GroupTable()
 {
 }
 
-bool GroupTable::EnterGroup( css::uno::Reference< css::container::XIndexAccess >& rXIndexAccessRef )
+bool GroupTable::EnterGroup( css::uno::Reference< css::container::XIndexAccess > const & rXIndexAccessRef )
 {
     bool bRet = false;
     if ( rXIndexAccessRef.is() )
diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx
index f105358ec107..76adf02d3842 100644
--- a/sd/source/filter/eppt/pptx-text.cxx
+++ b/sd/source/filter/eppt/pptx-text.cxx
@@ -677,7 +677,7 @@ ParagraphObj::ParagraphObj(const css::uno::Reference< css::beans::XPropertySet >
     ImplGetParagraphValues( pProv, false );
 }
 
-ParagraphObj::ParagraphObj(css::uno::Reference< css::text::XTextContent > & rXTextContent,
+ParagraphObj::ParagraphObj(css::uno::Reference< css::text::XTextContent > const & rXTextContent,
     ParaFlags aParaFlags, FontCollection& rFontCollection, PPTExBulletProvider& rProv )
     : PropStateValue()
     , SOParagraph()
@@ -1298,7 +1298,7 @@ ImplTextObj::~ImplTextObj()
         delete *it;
 }
 
-TextObj::TextObj( css::uno::Reference< css::text::XSimpleText > & rXTextRef,
+TextObj::TextObj( css::uno::Reference< css::text::XSimpleText > const & rXTextRef,
             int nInstance, FontCollection& rFontCollection, PPTExBulletProvider& rProv ):
     mpImplTextObj(new ImplTextObj(nInstance))
 {
diff --git a/sd/source/filter/eppt/text.hxx b/sd/source/filter/eppt/text.hxx
index d215a80bbd18..7051125735fa 100644
--- a/sd/source/filter/eppt/text.hxx
+++ b/sd/source/filter/eppt/text.hxx
@@ -215,7 +215,7 @@ class ParagraphObj : public PropStateValue, public SOParagraph
         bool                                mbParagraphPunctation;
         sal_uInt16                              mnBiDi;
 
-                        ParagraphObj( css::uno::Reference< css::text::XTextContent > & rXTextContentRef,
+                        ParagraphObj( css::uno::Reference< css::text::XTextContent > const & rXTextContentRef,
                             ParaFlags, FontCollection& rFontCollection,
                                 PPTExBulletProvider& rBuProv );
                         ParagraphObj( const ParagraphObj& rParargraphObj );
@@ -246,7 +246,7 @@ class TextObj
     void            ImplCalculateTextPositions();
 
 public:
-    TextObj( css::uno::Reference< css::text::XSimpleText > &
+    TextObj( css::uno::Reference< css::text::XSimpleText > const &
             rXText, int nInstance, FontCollection& rFontCollection, PPTExBulletProvider& rBuProv );
 
     ParagraphObj*   GetParagraph(int idx);
diff --git a/sd/source/filter/html/htmlattr.cxx b/sd/source/filter/html/htmlattr.cxx
index d845494d1801..5ac6e737ae5f 100644
--- a/sd/source/filter/html/htmlattr.cxx
+++ b/sd/source/filter/html/htmlattr.cxx
@@ -64,8 +64,8 @@ void SdHtmlAttrPreview::Paint(vcl::RenderContext& rRenderContext, const ::tools:
     rRenderContext.DrawText(aTextRect, SdResId(STR_HTMLATTR_VLINK), DrawTextFlags::Center | DrawTextFlags::VCenter);
 }
 
-void SdHtmlAttrPreview::SetColors(Color& aBack, Color& aText, Color& aLink,
-                                  Color& aVLink, Color& aALink)
+void SdHtmlAttrPreview::SetColors(Color const & aBack, Color const & aText, Color const & aLink,
+                                  Color const & aVLink, Color const & aALink)
 {
     m_aBackColor = aBack;
     m_aTextColor = aText;
diff --git a/sd/source/filter/html/htmlattr.hxx b/sd/source/filter/html/htmlattr.hxx
index a681040d5d29..3faa4363591f 100644
--- a/sd/source/filter/html/htmlattr.hxx
+++ b/sd/source/filter/html/htmlattr.hxx
@@ -36,8 +36,8 @@ public:
 
     virtual void Paint(vcl::RenderContext& rRenderContext, const ::tools::Rectangle& rRect) override;
 
-    void    SetColors( Color& aBack, Color& aText, Color& aLink,
-                       Color& aVLink, Color& aALink );
+    void    SetColors( Color const & aBack, Color const & aText, Color const & aLink,
+                       Color const & aVLink, Color const & aALink );
 };
 
 #endif // INCLUDED_SD_SOURCE_FILTER_HTML_HTMLATTR_HXX
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx
index f72c6206b297..cad6091ffb1b 100644
--- a/sd/source/filter/html/htmlex.cxx
+++ b/sd/source/filter/html/htmlex.cxx
@@ -1031,7 +1031,7 @@ bool HtmlExport::CreateImagesForPresPages( bool bThumbnail)
 }
 
 // get SdrTextObject with layout text of this page
-SdrTextObj* HtmlExport::GetLayoutTextObject(SdrPage* pPage)
+SdrTextObj* HtmlExport::GetLayoutTextObject(SdrPage const * pPage)
 {
     const size_t nObjectCount = pPage->GetObjCount();
     SdrTextObj*     pResult      = nullptr;
@@ -1206,7 +1206,7 @@ OUString HtmlExport::CreateTextForTitle( SdrOutliner* pOutliner, SdPage* pPage,
 }
 
 // creates a outliner text for a page
-OUString HtmlExport::CreateTextForPage(SdrOutliner* pOutliner, SdPage* pPage,
+OUString HtmlExport::CreateTextForPage(SdrOutliner* pOutliner, SdPage const * pPage,
                                        bool bHeadLine, const Color& rBackgroundColor)
 {
     OUStringBuffer aStr;
@@ -1264,7 +1264,7 @@ OUString HtmlExport::CreateTextForPage(SdrOutliner* pOutliner, SdPage* pPage,
     return aStr.makeStringAndClear();
 }
 
-void HtmlExport::WriteTable(OUStringBuffer& aStr, SdrTableObj* pTableObject, SdrOutliner* pOutliner, const Color& rBackgroundColor)
+void HtmlExport::WriteTable(OUStringBuffer& aStr, SdrTableObj const * pTableObject, SdrOutliner* pOutliner, const Color& rBackgroundColor)
 {
     CellPos aStart, aEnd;
 
@@ -1292,7 +1292,7 @@ void HtmlExport::WriteTable(OUStringBuffer& aStr, SdrTableObj* pTableObject, Sdr
     aStr.append("</table>\r\n");
 }
 
-void HtmlExport::WriteObjectGroup(OUStringBuffer& aStr, SdrObjGroup* pObjectGroup, SdrOutliner* pOutliner,
+void HtmlExport::WriteObjectGroup(OUStringBuffer& aStr, SdrObjGroup const * pObjectGroup, SdrOutliner* pOutliner,
                                   const Color& rBackgroundColor, bool bHeadLine)
 {
     SdrObjListIter aGroupIterator(*pObjectGroup->GetSubList(), SdrIterMode::DeepNoGroups);
@@ -1316,7 +1316,7 @@ void HtmlExport::WriteObjectGroup(OUStringBuffer& aStr, SdrObjGroup* pObjectGrou
 }
 
 void HtmlExport::WriteOutlinerParagraph(OUStringBuffer& aStr, SdrOutliner* pOutliner,
-                                        OutlinerParaObject* pOutlinerParagraphObject,
+                                        OutlinerParaObject const * pOutlinerParagraphObject,
                                         const Color& rBackgroundColor, bool bHeadLine)
 {
     if (pOutlinerParagraphObject == nullptr)
@@ -1405,7 +1405,7 @@ OUString HtmlExport::CreateTextForNotesPage( SdrOutliner* pOutliner,
 }
 
 // converts a paragraph of the outliner to html
-OUString HtmlExport::ParagraphToHTMLString( SdrOutliner* pOutliner, sal_Int32 nPara, const Color& rBackgroundColor )
+OUString HtmlExport::ParagraphToHTMLString( SdrOutliner const * pOutliner, sal_Int32 nPara, const Color& rBackgroundColor )
 {
     OUStringBuffer aStr;
 
@@ -1450,7 +1450,7 @@ OUString HtmlExport::ParagraphToHTMLString( SdrOutliner* pOutliner, sal_Int32 nP
 // Depending on the attributes of the specified set and the specified
 // HtmlState, it creates the needed html tags in order to get the
 // attributes
-OUString HtmlExport::TextAttribToHTMLString( SfxItemSet* pSet, HtmlState* pState, const Color& rBackgroundColor )
+OUString HtmlExport::TextAttribToHTMLString( SfxItemSet const * pSet, HtmlState* pState, const Color& rBackgroundColor )
 {
     OUStringBuffer aStr;
 
@@ -3052,7 +3052,7 @@ bool HtmlExport::CopyFile( const OUString& rSourceFile, const OUString& rDestFil
     }
 }
 
-bool HtmlExport::checkFileExists( Reference< css::ucb::XSimpleFileAccess3 >& xFileAccess, OUString const & aFileName )
+bool HtmlExport::checkFileExists( Reference< css::ucb::XSimpleFileAccess3 > const & xFileAccess, OUString const & aFileName )
 {
     try
     {
diff --git a/sd/source/filter/html/htmlex.hxx b/sd/source/filter/html/htmlex.hxx
index 24e850abd132..fae392e19643 100644
--- a/sd/source/filter/html/htmlex.hxx
+++ b/sd/source/filter/html/htmlex.hxx
@@ -143,7 +143,7 @@ class HtmlExport final
 
     std::unique_ptr< ButtonSet > mpButtonSet;
 
-    static SdrTextObj* GetLayoutTextObject(SdrPage* pPage);
+    static SdrTextObj* GetLayoutTextObject(SdrPage const * pPage);
 
     void SetDocColors( SdPage* pPage = nullptr );
 
@@ -164,7 +164,7 @@ class HtmlExport final
     bool    CreateImageNumberFile();
 
     bool    checkForExistingFiles();
-    bool    checkFileExists( css::uno::Reference< css::ucb::XSimpleFileAccess3 >& xFileAccess, OUString const & aFileName );
+    bool    checkFileExists( css::uno::Reference< css::ucb::XSimpleFileAccess3 > const & xFileAccess, OUString const & aFileName );
 
     OUString const & getDocumentTitle();
     bool    SavePresentation();
@@ -175,11 +175,11 @@ class HtmlExport final
     OUString CreateNavBar( sal_uInt16 nSdPage, bool bIsText ) const;
     OUString CreateBodyTag() const;
 
-    OUString ParagraphToHTMLString( SdrOutliner* pOutliner, sal_Int32 nPara, const Color& rBackgroundColor );
-    OUString TextAttribToHTMLString( SfxItemSet* pSet, HtmlState* pState, const Color& rBackgroundColor );
+    OUString ParagraphToHTMLString( SdrOutliner const * pOutliner, sal_Int32 nPara, const Color& rBackgroundColor );
+    OUString TextAttribToHTMLString( SfxItemSet const * pSet, HtmlState* pState, const Color& rBackgroundColor );
 
     OUString CreateTextForTitle( SdrOutliner* pOutliner, SdPage* pPage, const Color& rBackgroundColor );
-    OUString CreateTextForPage( SdrOutliner* pOutliner, SdPage* pPage, bool bHeadLine, const Color& rBackgroundColor );
+    OUString CreateTextForPage( SdrOutliner* pOutliner, SdPage const * pPage, bool bHeadLine, const Color& rBackgroundColor );
     OUString CreateTextForNotesPage( SdrOutliner* pOutliner, SdPage* pPage, const Color& rBackgroundColor );
 
     static OUString CreateHTMLCircleArea( sal_uLong nRadius, sal_uLong nCenterX,
@@ -213,13 +213,13 @@ class HtmlExport final
     static OUString GetButtonName( int nButton );
 
     void WriteOutlinerParagraph(OUStringBuffer& aStr, SdrOutliner* pOutliner,
-                                OutlinerParaObject* pOutlinerParagraphObject,
+                                OutlinerParaObject const * pOutlinerParagraphObject,
                                 const Color& rBackgroundColor, bool bHeadLine);
 
-    void WriteObjectGroup(OUStringBuffer& aStr, SdrObjGroup* pObjectGroup,
+    void WriteObjectGroup(OUStringBuffer& aStr, SdrObjGroup const * pObjectGroup,
                           SdrOutliner* pOutliner, const Color& rBackgroundColor, bool bHeadLine);
 
-    void WriteTable(OUStringBuffer& aStr, sdr::table::SdrTableObj* pTableObject,
+    void WriteTable(OUStringBuffer& aStr, sdr::table::SdrTableObj const * pTableObject,
                     SdrOutliner* pOutliner, const Color& rBackgroundColor);
 
  public:
diff --git a/sd/source/filter/ppt/pptinanimations.cxx b/sd/source/filter/ppt/pptinanimations.cxx
index e4039d42cf50..57f43bb336f7 100644
--- a/sd/source/filter/ppt/pptinanimations.cxx
+++ b/sd/source/filter/ppt/pptinanimations.cxx
@@ -868,7 +868,7 @@ bool AnimationImporter::convertAnimationValue( oox::ppt::MS_AttributeNames eAttr
     return bRet;
 }
 
-void AnimationImporter::fillNode( Reference< XAnimationNode >& xNode, const AnimationNode& rNode, const PropertySet& rSet )
+void AnimationImporter::fillNode( Reference< XAnimationNode > const & xNode, const AnimationNode& rNode, const PropertySet& rSet )
 {
     bool bAfterEffect = false;
 
diff --git a/sd/source/filter/ppt/pptinanimations.hxx b/sd/source/filter/ppt/pptinanimations.hxx
index a9e9e9fe2d16..77e599a72833 100644
--- a/sd/source/filter/ppt/pptinanimations.hxx
+++ b/sd/source/filter/ppt/pptinanimations.hxx
@@ -74,7 +74,7 @@ private:
     void importAttributeNamesContainer( const Atom* pAtom, OUString& rAttributeNames );
     void importTargetElementContainer( const Atom* pAtom, css::uno::Any& rTarget, sal_Int16& nSubType );
 
-    static void fillNode( css::uno::Reference< css::animations::XAnimationNode >& xTiming, const AnimationNode& rNode, const PropertySet& rSet );
+    static void fillNode( css::uno::Reference< css::animations::XAnimationNode > const & xTiming, const AnimationNode& rNode, const PropertySet& rSet );
     static css::uno::Reference< css::animations::XAnimationNode > createNode( const Atom* pAtom, const AnimationNode& rNode );
 
     bool convertAnimationNode( const css::uno::Reference< css::animations::XAnimationNode >& xNode, const css::uno::Reference< css::animations::XAnimationNode >& xParent );
diff --git a/sd/source/filter/xml/sdtransform.cxx b/sd/source/filter/xml/sdtransform.cxx
index 99918dae0050..7f76feb75346 100644
--- a/sd/source/filter/xml/sdtransform.cxx
+++ b/sd/source/filter/xml/sdtransform.cxx
@@ -50,7 +50,7 @@ public:
     void transformStyles( SfxStyleFamily eFam );
     void transformStyle( SfxStyleSheetBase& rSheet );
 
-    void transformShapes( SdrObjList& rShapes );
+    void transformShapes( SdrObjList const & rShapes );
     void transformShape( SdrObject& rObj );
 
     void transformTextShape( SdrTextObj& rTextShape );
@@ -152,7 +152,7 @@ void SdTransformOOo2xDocument::transformStyle( SfxStyleSheetBase& rSheet )
     removeAlienAttributes( rSet );
 }
 
-void SdTransformOOo2xDocument::transformShapes( SdrObjList& rShapes )
+void SdTransformOOo2xDocument::transformShapes( SdrObjList const & rShapes )
 {
     const size_t nShapeCount = rShapes.GetObjCount();
     for( size_t nShape = 0; nShape < nShapeCount; ++nShape )
diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx
index 0017fcbb4006..56a1368d78aa 100644
--- a/sd/source/filter/xml/sdxmlwrp.cxx
+++ b/sd/source/filter/xml/sdxmlwrp.cxx
@@ -171,7 +171,7 @@ ErrCode ReadThroughComponent(
     const Reference<io::XInputStream>& xInputStream,
     const Reference<XComponent>& xModelComponent,
     const OUString& rStreamName,
-    Reference<uno::XComponentContext> & rxContext,
+    Reference<uno::XComponentContext> const & rxContext,
     const sal_Char* pFilterName,
     const Sequence<Any>& rFilterArguments,
     const OUString& rName,
@@ -297,7 +297,7 @@ ErrCode ReadThroughComponent(
     const Reference<XComponent>& xModelComponent,
     const sal_Char* pStreamName,
     const sal_Char* pCompatibilityStreamName,
-    Reference<uno::XComponentContext> & rxContext,
+    Reference<uno::XComponentContext> const & rxContext,
     const sal_Char* pFilterName,
     const Sequence<Any>& rFilterArguments,
     const OUString& rName,
diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx
index 5fa19192edf7..03b20553026f 100644
--- a/sd/source/ui/animations/CustomAnimationDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationDialog.cxx
@@ -990,7 +990,7 @@ public:
     void update( STLPropertySet* pSet );
     DECL_LINK( implSelectHdl, ListBox&, void );
     DECL_LINK( implClickHdl, Button*, void );
-    void implHdl(Control*);
+    void implHdl(Control const *);
 
 private:
     void updateControlStates();
@@ -1282,7 +1282,7 @@ IMPL_LINK( CustomAnimationEffectTabPage, implSelectHdl, ListBox&, rListBox, void
     implHdl(&rListBox);
 }
 
-void CustomAnimationEffectTabPage::implHdl(Control* pControl )
+void CustomAnimationEffectTabPage::implHdl(Control const * pControl )
 {
     if( pControl == mpLBTextAnim )
     {
@@ -1558,7 +1558,7 @@ public:
     DECL_LINK( implControlHdl, ListBox&, void );
     DECL_LINK( implClickHdl, Button*, void );
     DECL_LINK( DurationModifiedHdl, Edit&, void );
-    void implHdl(Control*);
+    void implHdl(Control const *);
 
 private:
     const STLPropertySet* mpSet;
@@ -1786,7 +1786,7 @@ IMPL_LINK_NOARG(CustomAnimationDurationTabPage, DurationModifiedHdl, Edit&, void
     }
 }
 
-void CustomAnimationDurationTabPage::implHdl( Control* pControl )
+void CustomAnimationDurationTabPage::implHdl( Control const * pControl )
 {
     if( pControl == mpLBTrigger )
     {
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 6100c21c5a31..b0f8e63faed7 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -1246,7 +1246,7 @@ STLPropertySet* CustomAnimationPane::createSelectionSet()
     return pSet;
 }
 
-void CustomAnimationPane::changeSelection( STLPropertySet* pResultSet, STLPropertySet* pOldSet )
+void CustomAnimationPane::changeSelection( STLPropertySet const * pResultSet, STLPropertySet const * pOldSet )
 {
     // change selected effect
     bool bChanged = false;
@@ -1895,7 +1895,7 @@ void CustomAnimationPane::onRemove()
     }
 }
 
-void CustomAnimationPane::remove( CustomAnimationEffectPtr& pEffect )
+void CustomAnimationPane::remove( CustomAnimationEffectPtr const & pEffect )
 {
     if( pEffect->getEffectSequence() )
     {
@@ -2257,7 +2257,7 @@ IMPL_LINK( CustomAnimationPane, implControlListBoxHdl, ListBox&, rListBox, void
 }
 
 /// this link is called when one of the controls is modified
-void CustomAnimationPane::implControlHdl(Control* pControl )
+void CustomAnimationPane::implControlHdl(Control const * pControl )
 {
     if( pControl == mpPBAddEffect )
         onAdd();
diff --git a/sd/source/ui/animations/CustomAnimationPane.hxx b/sd/source/ui/animations/CustomAnimationPane.hxx
index 71a20cbb8021..400668c13ceb 100644
--- a/sd/source/ui/animations/CustomAnimationPane.hxx
+++ b/sd/source/ui/animations/CustomAnimationPane.hxx
@@ -79,7 +79,7 @@ public:
 
     // methods
     void preview( const css::uno::Reference< css::animations::XAnimationNode >& xAnimationNode );
-    void remove( CustomAnimationEffectPtr& pEffect );
+    void remove( CustomAnimationEffectPtr const & pEffect );
 
     // Control
     virtual void StateChanged( StateChangedType nStateChange ) override;
@@ -110,7 +110,7 @@ private:
     void onPreview( bool bForcePreview );
 
     STLPropertySet* createSelectionSet();
-    void changeSelection( STLPropertySet* pResultSet, STLPropertySet* pOldSet );
+    void changeSelection( STLPropertySet const * pResultSet, STLPropertySet const * pOldSet );
 
     static css::uno::Any getProperty1Value( sal_Int32 nType, const CustomAnimationEffectPtr& pEffect );
     bool setProperty1Value( sal_Int32 nType, const CustomAnimationEffectPtr& pEffect, const css::uno::Any& rValue );
@@ -129,7 +129,7 @@ private:
     DECL_LINK( DelayLoseFocusHdl, Control&, void );
     DECL_LINK( UpdateAnimationLB, ListBox&, void );
     DECL_LINK( AnimationSelectHdl, ListBox&, void );
-    void implControlHdl(Control*);
+    void implControlHdl(Control const *);
 
 private:
     ViewShellBase& mrBase;
diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx
index bc863e410d8c..aec1d09e893f 100644
--- a/sd/source/ui/animations/SlideTransitionPane.cxx
+++ b/sd/source/ui/animations/SlideTransitionPane.cxx
@@ -231,7 +231,7 @@ void lcl_ApplyToPages(
 
 void lcl_CreateUndoForPages(
     const ::sd::slidesorter::SharedPageSelection& rpPages,
-    ::sd::ViewShellBase& rBase )
+    ::sd::ViewShellBase const & rBase )
 {
     ::sd::DrawDocShell* pDocSh      = rBase.GetDocShell();
     if (!pDocSh)
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index 8880df777366..fd351bb87d24 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -119,7 +119,7 @@ SfxItemPool* GetAnnotationPool()
     return s_pAnnotationPool;
 }
 
-static SfxBindings* getBindings( ViewShellBase& rBase )
+static SfxBindings* getBindings( ViewShellBase const & rBase )
 {
     if( rBase.GetMainViewShell().get() && rBase.GetMainViewShell()->GetViewFrame() )
         return &rBase.GetMainViewShell()->GetViewFrame()->GetBindings();
@@ -127,7 +127,7 @@ static SfxBindings* getBindings( ViewShellBase& rBase )
     return nullptr;
 }
 
-static SfxDispatcher* getDispatcher( ViewShellBase& rBase )
+static SfxDispatcher* getDispatcher( ViewShellBase const & rBase )
 {
     if( rBase.GetMainViewShell().get() && rBase.GetMainViewShell()->GetViewFrame() )
         return rBase.GetMainViewShell()->GetViewFrame()->GetDispatcher();
@@ -300,7 +300,7 @@ void AnnotationManagerImpl::ShowAnnotations( bool bShow )
     }
 }
 
-void AnnotationManagerImpl::ExecuteAnnotation(SfxRequest& rReq )
+void AnnotationManagerImpl::ExecuteAnnotation(SfxRequest const & rReq )
 {
     switch( rReq.GetSlot() )
     {
@@ -328,7 +328,7 @@ void AnnotationManagerImpl::ExecuteAnnotation(SfxRequest& rReq )
     }
 }
 
-void AnnotationManagerImpl::ExecuteInsertAnnotation(SfxRequest& rReq)
+void AnnotationManagerImpl::ExecuteInsertAnnotation(SfxRequest const & rReq)
 {
     if (!comphelper::LibreOfficeKit::isActive() || comphelper::LibreOfficeKit::isTiledAnnotations())
         ShowAnnotations(true);
@@ -347,7 +347,7 @@ void AnnotationManagerImpl::ExecuteInsertAnnotation(SfxRequest& rReq)
     InsertAnnotation(sText);
 }
 
-void AnnotationManagerImpl::ExecuteDeleteAnnotation(SfxRequest& rReq)
+void AnnotationManagerImpl::ExecuteDeleteAnnotation(SfxRequest const & rReq)
 {
     ShowAnnotations( true );
 
@@ -395,7 +395,7 @@ void AnnotationManagerImpl::ExecuteDeleteAnnotation(SfxRequest& rReq)
     UpdateTags();
 }
 
-void AnnotationManagerImpl::ExecuteEditAnnotation(SfxRequest& rReq)
+void AnnotationManagerImpl::ExecuteEditAnnotation(SfxRequest const & rReq)
 {
     const SfxItemSet* pArgs = rReq.GetArgs();
     Reference< XAnnotation > xAnnotation;
@@ -527,7 +527,7 @@ void AnnotationManagerImpl::InsertAnnotation(const OUString& rText)
     }
 }
 
-void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest& rReq )
+void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest const & rReq )
 {
     Reference< XAnnotation > xAnnotation;
     const SfxItemSet* pArgs = rReq.GetArgs();
@@ -846,13 +846,13 @@ void AnnotationManagerImpl::SelectNextAnnotation(bool bForeward)
     while( true );
 }
 
-void AnnotationManagerImpl::onTagSelected( AnnotationTag& rTag )
+void AnnotationManagerImpl::onTagSelected( AnnotationTag const & rTag )
 {
     mxSelectedAnnotation = rTag.GetAnnotation();
     invalidateSlots();
 }
 
-void AnnotationManagerImpl::onTagDeselected( AnnotationTag& rTag )
+void AnnotationManagerImpl::onTagDeselected( AnnotationTag const & rTag )
 {
     if( rTag.GetAnnotation() == mxSelectedAnnotation )
     {
@@ -1258,7 +1258,7 @@ Color AnnotationManagerImpl::GetColorDark(sal_uInt16 aAuthorIndex)
     return Color(COL_WHITE);
 }
 
-SdPage* AnnotationManagerImpl::GetNextPage( SdPage* pPage, bool bForward )
+SdPage* AnnotationManagerImpl::GetNextPage( SdPage const * pPage, bool bForward )
 {
     if( pPage == nullptr )
     {
@@ -1333,7 +1333,7 @@ AnnotationManager::~AnnotationManager()
     mxImpl->dispose();
 }
 
-void AnnotationManager::ExecuteAnnotation(SfxRequest& rRequest)
+void AnnotationManager::ExecuteAnnotation(SfxRequest const & rRequest)
 {
     mxImpl->ExecuteAnnotation( rRequest );
 }
diff --git a/sd/source/ui/annotations/annotationmanagerimpl.hxx b/sd/source/ui/annotations/annotationmanagerimpl.hxx
index 16312b233425..5f5ed8e65d77 100644
--- a/sd/source/ui/annotations/annotationmanagerimpl.hxx
+++ b/sd/source/ui/annotations/annotationmanagerimpl.hxx
@@ -61,13 +61,13 @@ public:
     virtual void SAL_CALL notifyEvent( const css::document::EventObject& Event ) override;
     virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
 
-    void ExecuteAnnotation (SfxRequest& rRequest);
+    void ExecuteAnnotation (SfxRequest const & rRequest);
     void GetAnnotationState (SfxItemSet& rItemSet);
 
-    void ExecuteInsertAnnotation(SfxRequest& rReq);
-    void ExecuteDeleteAnnotation(SfxRequest& rReq);
-    void ExecuteEditAnnotation(SfxRequest& rReq);
-    void ExecuteReplyToAnnotation(SfxRequest& rReq);
+    void ExecuteInsertAnnotation(SfxRequest const & rReq);
+    void ExecuteDeleteAnnotation(SfxRequest const & rReq);
+    void ExecuteEditAnnotation(SfxRequest const & rReq);
+    void ExecuteReplyToAnnotation(SfxRequest const & rReq);
 
     void SelectNextAnnotation(bool bForeward);
 
@@ -86,8 +86,8 @@ public:
     static Color GetColor(sal_uInt16 aAuthorIndex);
 
     // callbacks
-    void onTagSelected( AnnotationTag& rTag );
-    void onTagDeselected( AnnotationTag& rTag );
+    void onTagSelected( AnnotationTag const & rTag );
+    void onTagDeselected( AnnotationTag const & rTag );
 
     void onSelectionChanged();
 
@@ -103,7 +103,7 @@ public:
     void CreateTags();
     void DisposeTags();
 
-    SdPage* GetNextPage( SdPage* pPage, bool bForeward );
+    SdPage* GetNextPage( SdPage const * pPage, bool bForeward );
 
     SdPage* GetCurrentPage();
 
diff --git a/sd/source/ui/annotations/annotationtag.cxx b/sd/source/ui/annotations/annotationtag.cxx
index 659141df6968..8aa487925d6c 100644
--- a/sd/source/ui/annotations/annotationtag.cxx
+++ b/sd/source/ui/annotations/annotationtag.cxx
@@ -244,7 +244,7 @@ bool AnnotationHdl::isMarkable() const
     return false;
 }
 
-AnnotationTag::AnnotationTag( AnnotationManagerImpl& rManager, ::sd::View& rView, const Reference< XAnnotation >& xAnnotation, Color& rColor, int nIndex, const vcl::Font& rFont )
+AnnotationTag::AnnotationTag( AnnotationManagerImpl& rManager, ::sd::View& rView, const Reference< XAnnotation >& xAnnotation, Color const & rColor, int nIndex, const vcl::Font& rFont )
 : SmartTag( rView )
 , mrManager( rManager )
 , mxAnnotation( xAnnotation )
diff --git a/sd/source/ui/annotations/annotationtag.hxx b/sd/source/ui/annotations/annotationtag.hxx
index 9419efc0fd2e..7a5da127635b 100644
--- a/sd/source/ui/annotations/annotationtag.hxx
+++ b/sd/source/ui/annotations/annotationtag.hxx
@@ -34,7 +34,7 @@ class AnnotationWindow;
 class AnnotationTag : public SmartTag
 {
 public:
-    AnnotationTag( AnnotationManagerImpl& rManager, ::sd::View& rView, const css::uno::Reference< css::office::XAnnotation >& xAnnotation, Color& rColor, int nIndex, const vcl::Font& rFont );
+    AnnotationTag( AnnotationManagerImpl& rManager, ::sd::View& rView, const css::uno::Reference< css::office::XAnnotation >& xAnnotation, Color const & rColor, int nIndex, const vcl::Font& rFont );
     virtual ~AnnotationTag() override;
 
     /// @return true if the SmartTag handled the event.
diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx
index 7b2349ac2493..6d96fc1d26af 100644
--- a/sd/source/ui/annotations/annotationwindow.cxx
+++ b/sd/source/ui/annotations/annotationwindow.cxx
@@ -99,7 +99,7 @@ using namespace ::com::sun::star::text;
 
 namespace sd {
 
-Color ColorFromAlphaColor(sal_uInt8 aTransparency, Color &aFront, Color &aBack )
+Color ColorFromAlphaColor(sal_uInt8 aTransparency, Color const &aFront, Color const &aBack )
 {
     return Color((sal_uInt8)(aFront.GetRed()    * aTransparency/(double)255 + aBack.GetRed()    * (1-aTransparency/(double)255)),
                  (sal_uInt8)(aFront.GetGreen()  * aTransparency/(double)255 + aBack.GetGreen()  * (1-aTransparency/(double)255)),
diff --git a/sd/source/ui/app/optsitem.cxx b/sd/source/ui/app/optsitem.cxx
index e474494baa87..3e38c6e963a8 100644
--- a/sd/source/ui/app/optsitem.cxx
+++ b/sd/source/ui/app/optsitem.cxx
@@ -279,7 +279,7 @@ SdOptionsLayoutItem::SdOptionsLayoutItem()
 {
 }
 
-SdOptionsLayoutItem::SdOptionsLayoutItem( SdOptions* pOpts, ::sd::FrameView* pView )
+SdOptionsLayoutItem::SdOptionsLayoutItem( SdOptions const * pOpts, ::sd::FrameView const * pView )
 :   SfxPoolItem     ( ATTR_OPTIONS_LAYOUT )
 ,   maOptionsLayout ( false, false )
 {
@@ -646,7 +646,7 @@ SdOptionsMiscItem::SdOptionsMiscItem()
 {
 }
 
-SdOptionsMiscItem::SdOptionsMiscItem( SdOptions* pOpts, ::sd::FrameView* pView )
+SdOptionsMiscItem::SdOptionsMiscItem( SdOptions const * pOpts, ::sd::FrameView const * pView )
 :   SfxPoolItem     ( ATTR_OPTIONS_MISC )
 ,   maOptionsMisc   ( false, false )
 {
@@ -857,7 +857,7 @@ SdOptionsSnapItem::SdOptionsSnapItem()
 {
 }
 
-SdOptionsSnapItem::SdOptionsSnapItem( SdOptions* pOpts, ::sd::FrameView* pView )
+SdOptionsSnapItem::SdOptionsSnapItem( SdOptions const * pOpts, ::sd::FrameView const * pView )
 :   SfxPoolItem     ( ATTR_OPTIONS_SNAP )
 ,   maOptionsSnap   ( false, false )
 {
@@ -1097,7 +1097,7 @@ bool SdOptionsGrid::WriteData( Any* pValues ) const
 |*
 \************************************************************************/
 
-SdOptionsGridItem::SdOptionsGridItem( SdOptions* pOpts ) :
+SdOptionsGridItem::SdOptionsGridItem( SdOptions const * pOpts ) :
     SvxGridItem( SID_ATTR_GRID_OPTIONS )
 {
     SetSynchronize( pOpts->IsSynchronize() );
@@ -1314,7 +1314,7 @@ SdOptionsPrintItem::SdOptionsPrintItem()
 {
 }
 
-SdOptionsPrintItem::SdOptionsPrintItem( SdOptions* pOpts )
+SdOptionsPrintItem::SdOptionsPrintItem( SdOptions const * pOpts )
 :   SfxPoolItem     ( ATTR_OPTIONS_PRINT )
 ,   maOptionsPrint  ( false, false )
 {
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx
index 368431a5e2f8..6e64d2285a1d 100644
--- a/sd/source/ui/app/sdmod1.cxx
+++ b/sd/source/ui/app/sdmod1.cxx
@@ -77,7 +77,7 @@ public:
     OutlineToImpressFinalizer (
         ::sd::ViewShellBase& rBase,
         SdDrawDocument& rDocument,
-        SvLockBytes& rBytes);
+        SvLockBytes const & rBytes);
     void operator() (bool bEventSeen);
 private:
     ::sd::ViewShellBase& mrBase;
@@ -248,7 +248,7 @@ void SdModule::Execute(SfxRequest& rReq)
     }
 }
 
-bool SdModule::OutlineToImpress(SfxRequest& rRequest)
+bool SdModule::OutlineToImpress(SfxRequest const & rRequest)
 {
     const SfxItemSet* pSet = rRequest.GetArgs();
 
@@ -450,7 +450,7 @@ SfxFrame* SdModule::CreateFromTemplate( const OUString& rTemplatePath, const Ref
 
 }
 
-SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq )
+SfxFrame* SdModule::ExecuteNewDocument( SfxRequest const & rReq )
 {
     SfxFrame* pFrame = nullptr;
     if ( SvtModuleOptions().IsImpress() )
@@ -532,7 +532,7 @@ namespace {
 OutlineToImpressFinalizer::OutlineToImpressFinalizer (
     ::sd::ViewShellBase& rBase,
     SdDrawDocument& rDocument,
-    SvLockBytes& rBytes)
+    SvLockBytes const & rBytes)
     : mrBase(rBase),
       mrDocument(rDocument),
       mpStream()
diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx
index 5a8b19bf842d..6a2cf38a53c8 100644
--- a/sd/source/ui/app/sdmod2.cxx
+++ b/sd/source/ui/app/sdmod2.cxx
@@ -71,7 +71,7 @@
 
 /** retrieves the page that is currently painted. This will only be the master page
     if the current drawn view only shows the master page*/
-static SdPage* GetCurrentPage( sd::ViewShell* pViewSh, EditFieldInfo* pInfo, bool& bMasterView )
+static SdPage* GetCurrentPage( sd::ViewShell const * pViewSh, EditFieldInfo const * pInfo, bool& bMasterView )
 {
     if( !pInfo )
         return nullptr;
@@ -91,7 +91,7 @@ static SdPage* GetCurrentPage( sd::ViewShell* pViewSh, EditFieldInfo* pInfo, boo
     // first try to check if we are inside the outline view
     sd::OutlineView* pSdView = nullptr;
     if( dynamic_cast<const sd::OutlineViewShell* >(pViewSh) !=  nullptr )
-        pSdView = static_cast<sd::OutlineView*> (static_cast<sd::OutlineViewShell*>(pViewSh)->GetView());
+        pSdView = static_cast<sd::OutlineView*> (static_cast<sd::OutlineViewShell const *>(pViewSh)->GetView());
 
     if (pSdView != nullptr && (pOutliner ==  &pSdView->GetOutliner()))
     {
diff --git a/sd/source/ui/controller/displaymodecontroller.cxx b/sd/source/ui/controller/displaymodecontroller.cxx
index 8897fc61a634..fb18c1d91107 100644
--- a/sd/source/ui/controller/displaymodecontroller.cxx
+++ b/sd/source/ui/controller/displaymodecontroller.cxx
@@ -59,7 +59,7 @@ public:
 protected:
     DECL_LINK( SelectToolbarMenuHdl, ToolbarMenu*, void );
     DECL_LINK( SelectValueSetHdl, ValueSet*, void );
-    void SelectHdl(void*);
+    void SelectHdl(void const *);
 
 private:
     DisplayModeController& mrController;
@@ -199,7 +199,7 @@ IMPL_LINK( DisplayModeToolbarMenu, SelectToolbarMenuHdl, ToolbarMenu *, pControl
     SelectHdl(pControl);
 }
 
-void DisplayModeToolbarMenu::SelectHdl(void * pControl)
+void DisplayModeToolbarMenu::SelectHdl(void const * pControl)
 {
     if ( IsInPopupMode() )
         EndPopupMode();
diff --git a/sd/source/ui/controller/slidelayoutcontroller.cxx b/sd/source/ui/controller/slidelayoutcontroller.cxx
index 2e60c895d80f..a8a95202a8cd 100644
--- a/sd/source/ui/controller/slidelayoutcontroller.cxx
+++ b/sd/source/ui/controller/slidelayoutcontroller.cxx
@@ -70,7 +70,7 @@ public:
 protected:
     DECL_LINK( SelectToolbarMenuHdl, ToolbarMenu*, void );
     DECL_LINK( SelectValueSetHdl, ValueSet*, void );
-    void SelectHdl(void*);
+    void SelectHdl(void const *);
 private:
     SlideLayoutController& mrController;
     bool mbInsertPage;
@@ -272,7 +272,7 @@ IMPL_LINK( LayoutToolbarMenu, SelectToolbarMenuHdl, ToolbarMenu *, pControl, voi
     SelectHdl(pControl);
 }
 
-void LayoutToolbarMenu::SelectHdl(void* pControl)
+void LayoutToolbarMenu::SelectHdl(void const * pControl)
 {
     if ( IsInPopupMode() )
         EndPopupMode();
diff --git a/sd/source/ui/dlg/NavigatorChildWindow.cxx b/sd/source/ui/dlg/NavigatorChildWindow.cxx
index 4f55f39f13ca..44ad4a659f00 100644
--- a/sd/source/ui/dlg/NavigatorChildWindow.cxx
+++ b/sd/source/ui/dlg/NavigatorChildWindow.cxx
@@ -30,7 +30,7 @@ namespace sd {
 
 SFX_IMPL_CHILDWINDOWCONTEXT(NavigatorChildWindow, SID_NAVIGATOR)
 
-void RequestNavigatorUpdate (SfxBindings* pBindings)
+void RequestNavigatorUpdate (SfxBindings const * pBindings)
 {
     if (pBindings != nullptr
         && pBindings->GetDispatcher() != nullptr)
diff --git a/sd/source/ui/dlg/TemplateScanner.cxx b/sd/source/ui/dlg/TemplateScanner.cxx
index 83f5b9929d2d..d6a447c36c14 100644
--- a/sd/source/ui/dlg/TemplateScanner.cxx
+++ b/sd/source/ui/dlg/TemplateScanner.cxx
@@ -112,7 +112,7 @@ TemplateEntryCompare::TemplateEntryCompare():
                        ::comphelper::getProcessComponentContext(),
                        Application::GetSettings().GetLanguageTag().getLocale())) {}
 
-bool TemplateEntryCompare::operator()(TemplateEntry* pA, TemplateEntry* pB) const
+bool TemplateEntryCompare::operator()(TemplateEntry const * pA, TemplateEntry const * pB) const
 {
     return 0 > mpStringSorter->compare(pA->msTitle, pB->msTitle);
 }
diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx
index 2ef96aa2de1c..92b8d48b4dcb 100644
--- a/sd/source/ui/dlg/animobjs.cxx
+++ b/sd/source/ui/dlg/animobjs.cxx
@@ -66,7 +66,7 @@ SdDisplay::~SdDisplay()
 {
 }
 
-void SdDisplay::SetBitmapEx( BitmapEx* pBmpEx )
+void SdDisplay::SetBitmapEx( BitmapEx const * pBmpEx )
 {
     if( pBmpEx )
     {
diff --git a/sd/source/ui/dlg/custsdlg.cxx b/sd/source/ui/dlg/custsdlg.cxx
index cba70a630de0..fbb407396bca 100644
--- a/sd/source/ui/dlg/custsdlg.cxx
+++ b/sd/source/ui/dlg/custsdlg.cxx
@@ -126,7 +126,7 @@ IMPL_LINK( SdCustomShowDlg, SelectListBoxHdl, ListBox&, rListBox, void )
     SelectHdl(&rListBox);
 }
 
-void SdCustomShowDlg::SelectHdl(void *p)
+void SdCustomShowDlg::SelectHdl(void const *p)
 {
     // new CustomShow
     if( p == m_pBtnNew )
@@ -399,7 +399,7 @@ IMPL_LINK( SdDefineCustomShowDlg, ClickButtonEditHdl, Edit&, rEdit, void )
     ClickButtonHdl2(&rEdit);
 }
 // ButtonHdl()
-void SdDefineCustomShowDlg::ClickButtonHdl2(void* p)
+void SdDefineCustomShowDlg::ClickButtonHdl2(void const * p)
 {
     if( p == m_pBtnAdd )
     {
diff --git a/sd/source/ui/dlg/dlgpage.cxx b/sd/source/ui/dlg/dlgpage.cxx
index f047e36d705e..2d7e7d022d22 100644
--- a/sd/source/ui/dlg/dlgpage.cxx
+++ b/sd/source/ui/dlg/dlgpage.cxx
@@ -33,7 +33,7 @@
 /**
  * Constructor of tab dialog: appends pages to the dialog
  */
-SdPageDlg::SdPageDlg( SfxObjectShell* pDocSh, vcl::Window* pParent, const SfxItemSet* pAttr, bool bAreaPage ) :
+SdPageDlg::SdPageDlg( SfxObjectShell const * pDocSh, vcl::Window* pParent, const SfxItemSet* pAttr, bool bAreaPage ) :
         SfxTabDialog ( pParent
                       ,"DrawPageDialog"
                       ,"modules/sdraw/ui/drawpagedialog.ui"
diff --git a/sd/source/ui/dlg/dlgsnap.cxx b/sd/source/ui/dlg/dlgsnap.cxx
index c59dac16c704..a46a1f040c11 100644
--- a/sd/source/ui/dlg/dlgsnap.cxx
+++ b/sd/source/ui/dlg/dlgsnap.cxx
@@ -34,7 +34,7 @@
 SdSnapLineDlg::SdSnapLineDlg(
     vcl::Window* pWindow,
     const SfxItemSet& rInAttrs,
-    ::sd::View* pView)
+    ::sd::View const * pView)
     : ModalDialog(pWindow, "SnapObjectDialog", "modules/sdraw/ui/dlgsnap.ui")
     , eUIUnit(pView->GetDoc().GetUIUnit())
     , aUIScale(pView->GetDoc().GetUIScale())
diff --git a/sd/source/ui/dlg/headerfooterdlg.cxx b/sd/source/ui/dlg/headerfooterdlg.cxx
index 06421b0851f7..c6eb9cd55e10 100644
--- a/sd/source/ui/dlg/headerfooterdlg.cxx
+++ b/sd/source/ui/dlg/headerfooterdlg.cxx
@@ -71,7 +71,7 @@ private:
     ::tools::Rectangle maOutRect;
 
 private:
-    void Paint(vcl::RenderContext& rRenderContext, SdrTextObj* pObj, bool bVisible, bool bDotted = false);
+    void Paint(vcl::RenderContext& rRenderContext, SdrTextObj const * pObj, bool bVisible, bool bDotted = false);
 
 public:
     explicit PresLayoutPreview(vcl::Window* pParent);
@@ -80,7 +80,7 @@ public:
     virtual Size GetOptimalSize() const override;
 
     void init(SdPage* pMaster);
-    void update(HeaderFooterSettings& rSettings);
+    void update(HeaderFooterSettings const & rSettings);
 };
 
 }
@@ -706,13 +706,13 @@ void PresLayoutPreview::init( SdPage *pMaster )
     maPageSize = pMaster->GetSize();
 }
 
-void PresLayoutPreview::update( HeaderFooterSettings& rSettings )
+void PresLayoutPreview::update( HeaderFooterSettings const & rSettings )
 {
     maSettings = rSettings;
     Invalidate();
 }
 
-void PresLayoutPreview::Paint(vcl::RenderContext& rRenderContext, SdrTextObj* pObj, bool bVisible, bool bDotted /* = false*/ )
+void PresLayoutPreview::Paint(vcl::RenderContext& rRenderContext, SdrTextObj const * pObj, bool bVisible, bool bDotted /* = false*/ )
 {
     // get object transformation
     basegfx::B2DHomMatrix aObjectTransform;
diff --git a/sd/source/ui/dlg/prltempl.cxx b/sd/source/ui/dlg/prltempl.cxx
index 681c65880edd..afa7e0f99f4b 100644
--- a/sd/source/ui/dlg/prltempl.cxx
+++ b/sd/source/ui/dlg/prltempl.cxx
@@ -48,7 +48,7 @@
 /**
  * Constructor of Tab dialog: appends pages to the dialog
  */
-SdPresLayoutTemplateDlg::SdPresLayoutTemplateDlg( SfxObjectShell* pDocSh,
+SdPresLayoutTemplateDlg::SdPresLayoutTemplateDlg( SfxObjectShell const * pDocSh,
                                 vcl::Window* pParent,
                                 bool bBackground,
                                 SfxStyleSheetBase& rStyleBase,
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index 942a391d4b04..695f148c8010 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -1302,7 +1302,7 @@ SvTreeListEntry* SdPageObjsTLB::GetDropTarget (const Point& rLocation)
     return pEntry;
 }
 
-bool SdPageObjsTLB::IsDropAllowed (SvTreeListEntry* pEntry)
+bool SdPageObjsTLB::IsDropAllowed (SvTreeListEntry const * pEntry)
 {
     if (pEntry == nullptr)
         return false;
diff --git a/sd/source/ui/dlg/tabtempl.cxx b/sd/source/ui/dlg/tabtempl.cxx
index 4c3c38bb1908..afe136f5c17e 100644
--- a/sd/source/ui/dlg/tabtempl.cxx
+++ b/sd/source/ui/dlg/tabtempl.cxx
@@ -50,7 +50,7 @@
 SdTabTemplateDlg::SdTabTemplateDlg( vcl::Window* pParent,
                                 const SfxObjectShell* pDocShell,
                                 SfxStyleSheetBase& rStyleBase,
-                                SdrModel* pModel,
+                                SdrModel const * pModel,
                                 SdrView* pView )
     : SfxStyleDialog(pParent, "TemplateDialog",
         "modules/simpress/ui/templatedialog.ui",
diff --git a/sd/source/ui/dlg/tpaction.cxx b/sd/source/ui/dlg/tpaction.cxx
index 2aae8a2bd5ef..9f0d25a4641c 100644
--- a/sd/source/ui/dlg/tpaction.cxx
+++ b/sd/source/ui/dlg/tpaction.cxx
@@ -75,7 +75,7 @@ using namespace com::sun::star::lang;
  * Constructor of the Tab dialog: appends the pages to the dialog
  */
 SdActionDlg::SdActionDlg (
-    vcl::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView )
+    vcl::Window* pParent, const SfxItemSet* pAttr, ::sd::View const * pView )
     : SfxSingleTabDialog(pParent, *pAttr, "InteractionDialog",
         "modules/simpress/ui/interactiondialog.ui")
     , rOutAttrs(*pAttr)
diff --git a/sd/source/ui/dlg/vectdlg.cxx b/sd/source/ui/dlg/vectdlg.cxx
index 203a423e09a8..e9b511cc9db6 100644
--- a/sd/source/ui/dlg/vectdlg.cxx
+++ b/sd/source/ui/dlg/vectdlg.cxx
@@ -129,7 +129,7 @@ void SdVectorizeDlg::InitPreviewBmp()
     m_pBmpWin->SetGraphic( aPreviewBmp );
 }
 
-Bitmap SdVectorizeDlg::GetPreparedBitmap( Bitmap& rBmp, Fraction& rScale )
+Bitmap SdVectorizeDlg::GetPreparedBitmap( Bitmap const & rBmp, Fraction& rScale )
 {
     Bitmap      aNew( rBmp );
     const Size  aSizePix( aNew.GetSizePixel() );
@@ -148,7 +148,7 @@ Bitmap SdVectorizeDlg::GetPreparedBitmap( Bitmap& rBmp, Fraction& rScale )
     return aNew;
 }
 
-void SdVectorizeDlg::Calculate( Bitmap& rBmp, GDIMetaFile& rMtf )
+void SdVectorizeDlg::Calculate( Bitmap const & rBmp, GDIMetaFile& rMtf )
 {
     mpDocSh->SetWaitCursor( true );
     m_pPrgs->SetValue( 0 );
@@ -220,7 +220,7 @@ void SdVectorizeDlg::Calculate( Bitmap& rBmp, GDIMetaFile& rMtf )
     mpDocSh->SetWaitCursor( false );
 }
 
-void SdVectorizeDlg::AddTile( BitmapReadAccess* pRAcc, GDIMetaFile& rMtf,
+void SdVectorizeDlg::AddTile( BitmapReadAccess const * pRAcc, GDIMetaFile& rMtf,
                               long nPosX, long nPosY, long nWidth, long nHeight )
 {
     sal_uLong           nSumR = 0UL, nSumG = 0UL, nSumB = 0UL;
diff --git a/sd/source/ui/docshell/docshel2.cxx b/sd/source/ui/docshell/docshel2.cxx
index 325b0750a2f5..770d2e5f2192 100644
--- a/sd/source/ui/docshell/docshel2.cxx
+++ b/sd/source/ui/docshell/docshel2.cxx
@@ -157,7 +157,7 @@ void DrawDocShell::Connect(ViewShell* pViewSh)
     mpViewShell = pViewSh;
 }
 
-void DrawDocShell::Disconnect(ViewShell* pViewSh)
+void DrawDocShell::Disconnect(ViewShell const * pViewSh)
 {
     if (mpViewShell == pViewSh)
     {
diff --git a/sd/source/ui/framework/module/CenterViewFocusModule.cxx b/sd/source/ui/framework/module/CenterViewFocusModule.cxx
index fa097d700643..b4304ec0b6ef 100644
--- a/sd/source/ui/framework/module/CenterViewFocusModule.cxx
+++ b/sd/source/ui/framework/module/CenterViewFocusModule.cxx
@@ -44,7 +44,7 @@ namespace sd { namespace framework {
 
 //===== CenterViewFocusModule ====================================================
 
-CenterViewFocusModule::CenterViewFocusModule (Reference<frame::XController>& rxController)
+CenterViewFocusModule::CenterViewFocusModule (Reference<frame::XController> const & rxController)
     : CenterViewFocusModuleInterfaceBase(MutexOwner::maMutex),
       mbValid(false),
       mxConfigurationController(),
diff --git a/sd/source/ui/framework/module/CenterViewFocusModule.hxx b/sd/source/ui/framework/module/CenterViewFocusModule.hxx
index 1511d0232db6..f7fe1efe4f5a 100644
--- a/sd/source/ui/framework/module/CenterViewFocusModule.hxx
+++ b/sd/source/ui/framework/module/CenterViewFocusModule.hxx
@@ -50,7 +50,7 @@ class CenterViewFocusModule
 {
 public:
     explicit CenterViewFocusModule (
-        css::uno::Reference<css::frame::XController>& rxController);
+        css::uno::Reference<css::frame::XController> const & rxController);
     virtual ~CenterViewFocusModule() override;
 
     virtual void SAL_CALL disposing() override;
diff --git a/sd/source/ui/framework/module/DrawModule.cxx b/sd/source/ui/framework/module/DrawModule.cxx
index a0babd6e2950..ac313bb94df8 100644
--- a/sd/source/ui/framework/module/DrawModule.cxx
+++ b/sd/source/ui/framework/module/DrawModule.cxx
@@ -29,7 +29,7 @@ using namespace ::com::sun::star::uno;
 
 namespace sd { namespace framework {
 
-void DrawModule::Initialize (Reference<frame::XController>& rxController)
+void DrawModule::Initialize (Reference<frame::XController> const & rxController)
 {
     new sd::framework::CenterViewFocusModule(rxController);
     new sd::framework::SlideSorterModule(
diff --git a/sd/source/ui/framework/module/ImpressModule.cxx b/sd/source/ui/framework/module/ImpressModule.cxx
index 2c240d8ed131..42d43965ff12 100644
--- a/sd/source/ui/framework/module/ImpressModule.cxx
+++ b/sd/source/ui/framework/module/ImpressModule.cxx
@@ -32,7 +32,7 @@ using namespace ::com::sun::star::uno;
 
 namespace sd { namespace framework {
 
-void ImpressModule::Initialize (Reference<frame::XController>& rxController)
+void ImpressModule::Initialize (Reference<frame::XController> const & rxController)
 {
     new CenterViewFocusModule(rxController);
     new ViewTabBarModule(
diff --git a/sd/source/ui/framework/module/PresentationModule.cxx b/sd/source/ui/framework/module/PresentationModule.cxx
index 4c05c227648b..10d9ba7cc3ac 100644
--- a/sd/source/ui/framework/module/PresentationModule.cxx
+++ b/sd/source/ui/framework/module/PresentationModule.cxx
@@ -27,7 +27,7 @@ using namespace ::com::sun::star::uno;
 
 namespace sd { namespace framework {
 
-void PresentationModule::Initialize (Reference<frame::XController>& rxController)
+void PresentationModule::Initialize (Reference<frame::XController> const & rxController)
 {
     new sd::framework::CenterViewFocusModule(rxController);
 }
diff --git a/sd/source/ui/framework/module/ShellStackGuard.cxx b/sd/source/ui/framework/module/ShellStackGuard.cxx
index f86d95075016..80858eee689e 100644
--- a/sd/source/ui/framework/module/ShellStackGuard.cxx
+++ b/sd/source/ui/framework/module/ShellStackGuard.cxx
@@ -38,7 +38,7 @@ namespace sd { namespace framework {
 
 //===== CenterViewFocusModule ====================================================
 
-ShellStackGuard::ShellStackGuard (Reference<frame::XController>& rxController)
+ShellStackGuard::ShellStackGuard (Reference<frame::XController> const & rxController)
     : ShellStackGuardInterfaceBase(m_aMutex),
       mxConfigurationController(),
       mpBase(nullptr),
diff --git a/sd/source/ui/framework/module/ShellStackGuard.hxx b/sd/source/ui/framework/module/ShellStackGuard.hxx
index bb506e3a5004..959515e76df7 100644
--- a/sd/source/ui/framework/module/ShellStackGuard.hxx
+++ b/sd/source/ui/framework/module/ShellStackGuard.hxx
@@ -60,7 +60,7 @@ class ShellStackGuard
       public ShellStackGuardInterfaceBase
 {
 public:
-    explicit ShellStackGuard (css::uno::Reference<css::frame::XController>& rxController);
+    explicit ShellStackGuard (css::uno::Reference<css::frame::XController> const & rxController);
     virtual ~ShellStackGuard() override;
 
     virtual void SAL_CALL disposing() override;
diff --git a/sd/source/ui/framework/tools/FrameworkHelper.cxx b/sd/source/ui/framework/tools/FrameworkHelper.cxx
index 163ee147e400..ed25bcc026f5 100644
--- a/sd/source/ui/framework/tools/FrameworkHelper.cxx
+++ b/sd/source/ui/framework/tools/FrameworkHelper.cxx
@@ -549,7 +549,7 @@ void asyncUpdateEditMode(FrameworkHelper* const pHelper, const EditMode eEMode)
 
 void FrameworkHelper::HandleModeChangeSlot (
     sal_uLong nSlotId,
-    SfxRequest& rRequest)
+    SfxRequest const & rRequest)
 {
     if ( ! mxConfigurationController.is())
         return;
diff --git a/sd/source/ui/func/fubullet.cxx b/sd/source/ui/func/fubullet.cxx
index 1ef5ac6276ad..498f0fa79a62 100644
--- a/sd/source/ui/func/fubullet.cxx
+++ b/sd/source/ui/func/fubullet.cxx
@@ -148,7 +148,7 @@ void FuBullet::InsertFormattingMark( sal_Unicode cMark )
     }
 }
 
-void FuBullet::InsertSpecialCharacter( SfxRequest& rReq )
+void FuBullet::InsertSpecialCharacter( SfxRequest const & rReq )
 {
     const SfxItemSet *pArgs = rReq.GetArgs();
     const SfxPoolItem* pItem = nullptr;
@@ -291,7 +291,7 @@ void FuBullet::InsertSpecialCharacter( SfxRequest& rReq )
     }
 }
 
-void FuBullet::GetSlotState( SfxItemSet& rSet, ViewShell* pViewShell, SfxViewFrame* pViewFrame )
+void FuBullet::GetSlotState( SfxItemSet& rSet, ViewShell const * pViewShell, SfxViewFrame* pViewFrame )
 {
     if( SfxItemState::DEFAULT == rSet.GetItemState( SID_CHARMAP ) ||
         SfxItemState::DEFAULT == rSet.GetItemState( FN_INSERT_SOFT_HYPHEN ) ||
@@ -319,7 +319,7 @@ void FuBullet::GetSlotState( SfxItemSet& rSet, ViewShell* pViewShell, SfxViewFra
             rSet.DisableItem(SID_INSERT_ZWSP);
         }
 
-        if( !bTextEdit && (dynamic_cast<OutlineViewShell*>( pViewShell ) == nullptr) )
+        if( !bTextEdit && (dynamic_cast<OutlineViewShell const *>( pViewShell ) == nullptr) )
             rSet.DisableItem(SID_CHARMAP);
 
         if(!bTextEdit || !bCtlEnabled )
diff --git a/sd/source/ui/func/fucon3d.cxx b/sd/source/ui/func/fucon3d.cxx
index 7db884efeefe..ff60c40925e4 100644
--- a/sd/source/ui/func/fucon3d.cxx
+++ b/sd/source/ui/func/fucon3d.cxx
@@ -235,7 +235,7 @@ E3dCompoundObject* FuConstruct3dObject::ImpCreateBasic3DShape()
     return p3DObj;
 }
 
-void FuConstruct3dObject::ImpPrepareBasic3DShape(E3dCompoundObject* p3DObj, E3dScene *pScene)
+void FuConstruct3dObject::ImpPrepareBasic3DShape(E3dCompoundObject const * p3DObj, E3dScene *pScene)
 {
     Camera3D aCamera  = pScene->GetCamera ();
 
diff --git a/sd/source/ui/func/fuconrec.cxx b/sd/source/ui/func/fuconrec.cxx
index 3871611bde24..5b6173deba0a 100644
--- a/sd/source/ui/func/fuconrec.cxx
+++ b/sd/source/ui/func/fuconrec.cxx
@@ -499,7 +499,7 @@ void FuConstructRectangle::SetAttributes(SfxItemSet& rAttr, SdrObject* pObj)
 /**
  * set line starts and ends for the object to be created
  */
-::basegfx::B2DPolyPolygon getPolygon(const char* pResId, SdrModel* pDoc)
+::basegfx::B2DPolyPolygon getPolygon(const char* pResId, SdrModel const * pDoc)
 {
     ::basegfx::B2DPolyPolygon aRetval;
     XLineEndListRef pLineEndList = pDoc->GetLineEndList();
@@ -523,7 +523,7 @@ void FuConstructRectangle::SetAttributes(SfxItemSet& rAttr, SdrObject* pObj)
     return aRetval;
 }
 
-void FuConstructRectangle::SetLineEnds(SfxItemSet& rAttr, SdrObject* pObj)
+void FuConstructRectangle::SetLineEnds(SfxItemSet& rAttr, SdrObject const * pObj)
 {
     if ( (pObj->GetObjIdentifier() == OBJ_EDGE &&
           nSlotId != SID_TOOL_CONNECTOR        &&
diff --git a/sd/source/ui/func/fuformatpaintbrush.cxx b/sd/source/ui/func/fuformatpaintbrush.cxx
index a44b2f6f4a97..b14e6e5d755b 100644
--- a/sd/source/ui/func/fuformatpaintbrush.cxx
+++ b/sd/source/ui/func/fuformatpaintbrush.cxx
@@ -263,7 +263,7 @@ void FuFormatPaintBrush::Paste( bool bNoCharacterFormats, bool bNoParagraphForma
     }
 }
 

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list