[Libreoffice-commits] core.git: cui/source

Noel Grandin noel.grandin at collabora.co.uk
Mon Jul 31 17:43:12 UTC 2017


 cui/source/customize/SvxConfigPageHelper.cxx |    6 +++---
 cui/source/customize/acccfg.cxx              |    2 +-
 cui/source/customize/cfg.cxx                 |   20 ++++++++++----------
 cui/source/customize/cfgutil.cxx             |    2 +-
 cui/source/dialogs/SpellDialog.cxx           |    4 ++--
 cui/source/dialogs/cuigaldlg.cxx             |    2 +-
 cui/source/dialogs/cuihyperdlg.cxx           |    4 ++--
 cui/source/dialogs/dlgname.cxx               |    2 +-
 cui/source/dialogs/hangulhanjadlg.cxx        |    4 ++--
 cui/source/dialogs/hyphen.cxx                |    2 +-
 cui/source/dialogs/iconcdlg.cxx              |    4 ++--
 cui/source/dialogs/linkdlg.cxx               |    2 +-
 cui/source/dialogs/scriptdlg.cxx             |   16 ++++++++--------
 cui/source/dialogs/sdrcelldlg.cxx            |    2 +-
 cui/source/inc/SpellDialog.hxx               |    4 ++--
 cui/source/inc/SvxConfigPageHelper.hxx       |    6 +++---
 cui/source/inc/acccfg.hxx                    |    2 +-
 cui/source/inc/autocdlg.hxx                  |    4 ++--
 cui/source/inc/cfg.hxx                       |   22 +++++++++++-----------
 cui/source/inc/cfgutil.hxx                   |    2 +-
 cui/source/inc/chardlg.hxx                   |    2 +-
 cui/source/inc/connect.hxx                   |    2 +-
 cui/source/inc/cuigaldlg.hxx                 |    2 +-
 cui/source/inc/cuihyperdlg.hxx               |    2 +-
 cui/source/inc/cuitabarea.hxx                |    6 +++---
 cui/source/inc/cuitabline.hxx                |   12 ++++++------
 cui/source/inc/dbregister.hxx                |    2 +-
 cui/source/inc/dlgname.hxx                   |    2 +-
 cui/source/inc/hangulhanjadlg.hxx            |    4 ++--
 cui/source/inc/hyphen.hxx                    |    2 +-
 cui/source/inc/iconcdlg.hxx                  |    4 ++--
 cui/source/inc/linkdlg.hxx                   |    2 +-
 cui/source/inc/macroass.hxx                  |    2 +-
 cui/source/inc/measure.hxx                   |    2 +-
 cui/source/inc/numfmt.hxx                    |    4 ++--
 cui/source/inc/optdict.hxx                   |    4 ++--
 cui/source/inc/optlingu.hxx                  |    2 +-
 cui/source/inc/scriptdlg.hxx                 |   14 +++++++-------
 cui/source/inc/sdrcelldlg.hxx                |    2 +-
 cui/source/inc/swpossizetabpage.hxx          |    6 +++---
 cui/source/options/dbregister.cxx            |    2 +-
 cui/source/options/fontsubs.cxx              |    2 +-
 cui/source/options/fontsubs.hxx              |    2 +-
 cui/source/options/optasian.cxx              |    4 ++--
 cui/source/options/optcolor.cxx              |    6 +++---
 cui/source/options/optdict.cxx               |    4 ++--
 cui/source/options/optlingu.cxx              |    2 +-
 cui/source/options/personalization.cxx       |    4 ++--
 cui/source/options/personalization.hxx       |    4 ++--
 cui/source/options/securityoptions.cxx       |    2 +-
 cui/source/options/securityoptions.hxx       |    2 +-
 cui/source/options/treeopt.cxx               |    4 ++--
 cui/source/tabpages/autocdlg.cxx             |    6 +++---
 cui/source/tabpages/backgrnd.cxx             |    4 ++--
 cui/source/tabpages/chardlg.cxx              |   10 +++++-----
 cui/source/tabpages/connect.cxx              |    2 +-
 cui/source/tabpages/grfpage.cxx              |    2 +-
 cui/source/tabpages/macroass.cxx             |    4 ++--
 cui/source/tabpages/measure.cxx              |    2 +-
 cui/source/tabpages/numfmt.cxx               |    4 ++--
 cui/source/tabpages/numpages.cxx             |    2 +-
 cui/source/tabpages/swpossizetabpage.cxx     |    6 +++---
 cui/source/tabpages/tpgradnt.cxx             |    2 +-
 cui/source/tabpages/tphatch.cxx              |    2 +-
 cui/source/tabpages/tpline.cxx               |   10 +++++-----
 cui/source/tabpages/tplnedef.cxx             |    2 +-
 cui/source/tabpages/tptrans.cxx              |    2 +-
 67 files changed, 144 insertions(+), 144 deletions(-)

New commits:
commit 4a4412f70cd07baa8e67dd92dc1c403455bfe3a4
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Mon Jul 31 15:13:12 2017 +0200

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

diff --git a/cui/source/customize/SvxConfigPageHelper.cxx b/cui/source/customize/SvxConfigPageHelper.cxx
index 0e8c9ec5e6e0..6f5b3889ca71 100644
--- a/cui/source/customize/SvxConfigPageHelper.cxx
+++ b/cui/source/customize/SvxConfigPageHelper.cxx
@@ -23,7 +23,7 @@ static sal_Int16 theImageType =
     css::ui::ImageType::COLOR_NORMAL |
     css::ui::ImageType::SIZE_DEFAULT;
 
-void SvxConfigPageHelper::RemoveEntry( SvxEntries* pEntries, SvxConfigEntry* pChildEntry )
+void SvxConfigPageHelper::RemoveEntry( SvxEntries* pEntries, SvxConfigEntry const * pChildEntry )
 {
     SvxEntries::iterator iter = pEntries->begin();
 
@@ -454,12 +454,12 @@ bool SvxConfigPageHelper::showKeyConfigTabPage(
         && sModuleId != "com.sun.star.frame.StartModule";
 }
 
-bool SvxConfigPageHelper::EntrySort( SvxConfigEntry* a, SvxConfigEntry* b )
+bool SvxConfigPageHelper::EntrySort( SvxConfigEntry const * a, SvxConfigEntry const * b )
 {
     return a->GetName().compareTo( b->GetName() ) < 0;
 }
 
-bool SvxConfigPageHelper::SvxConfigEntryModified( SvxConfigEntry* pEntry )
+bool SvxConfigPageHelper::SvxConfigEntryModified( SvxConfigEntry const * pEntry )
 {
     SvxEntries* pEntries = pEntry->GetEntries();
     if ( !pEntries )
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx
index b434ef282748..22ef10a47904 100644
--- a/cui/source/customize/acccfg.cxx
+++ b/cui/source/customize/acccfg.cxx
@@ -1522,7 +1522,7 @@ OUString SfxAcceleratorConfigPage::GetLabel4Command(const OUString& sCommand)
 /*
  * Remove entries which doesn't contain the search term
  */
-SvTreeListEntry* SfxAcceleratorConfigPage::applySearchFilter(OUString& rSearchTerm, SvTreeListBox* rListBox)
+SvTreeListEntry* SfxAcceleratorConfigPage::applySearchFilter(OUString const & rSearchTerm, SvTreeListBox* rListBox)
 {
     if ( rSearchTerm.isEmpty() || !rListBox )
     {
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 0e9777aa1e19..f5de4e504abc 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -456,7 +456,7 @@ MenuSaveInData::SetEntries( SvxEntries* pNewEntries )
 }
 
 bool SaveInData::LoadSubMenus( const uno::Reference< container::XIndexAccess >& xMenuSettings,
-    const OUString& rBaseTitle, SvxConfigEntry* pParentData, bool bContextMenu )
+    const OUString& rBaseTitle, SvxConfigEntry const * pParentData, bool bContextMenu )
 {
     SvxEntries* pEntries = pParentData->GetEntries();
 
@@ -618,7 +618,7 @@ bool MenuSaveInData::Apply()
 }
 
 void MenuSaveInData::Apply(
-    uno::Reference< container::XIndexContainer >& rMenuBar,
+    uno::Reference< container::XIndexContainer > const & rMenuBar,
     uno::Reference< lang::XSingleComponentFactory >& rFactory )
 {
     SvxEntries::const_iterator iter = GetEntries()->begin();
@@ -648,7 +648,7 @@ void MenuSaveInData::Apply(
 }
 
 void SaveInData::ApplyMenu(
-    uno::Reference< container::XIndexContainer >& rMenuBar,
+    uno::Reference< container::XIndexContainer > const & rMenuBar,
     uno::Reference< lang::XSingleComponentFactory >& rFactory,
     SvxConfigEntry* pMenuData )
 {
@@ -1513,7 +1513,7 @@ IMPL_LINK_NOARG( SvxConfigPage, SelectSaveInLocation, ListBox&, void )
     Init();
 }
 
-void SvxConfigPage::ReloadTopLevelListBox( SvxConfigEntry* pToSelect )
+void SvxConfigPage::ReloadTopLevelListBox( SvxConfigEntry const * pToSelect )
 {
     sal_Int32 nSelectionPos = m_pTopLevelListBox->GetSelectEntryPos();
     m_pTopLevelListBox->Clear();
@@ -1552,7 +1552,7 @@ void SvxConfigPage::ReloadTopLevelListBox( SvxConfigEntry* pToSelect )
 }
 
 void SvxConfigPage::AddSubMenusToUI(
-    const OUString& rBaseTitle, SvxConfigEntry* pParentData )
+    const OUString& rBaseTitle, SvxConfigEntry const * pParentData )
 {
     SvxEntries::const_iterator iter = pParentData->GetEntries()->begin();
     SvxEntries::const_iterator end = pParentData->GetEntries()->end();
@@ -1801,7 +1801,7 @@ void SvxConfigPage::MoveEntry( bool bMoveUp )
 }
 
 bool SvxConfigPage::MoveEntryData(
-    SvTreeListEntry* pSourceEntry, SvTreeListEntry* pTargetEntry )
+    SvTreeListEntry const * pSourceEntry, SvTreeListEntry const * pTargetEntry )
 {
     //#i53677#
     if (nullptr == pSourceEntry || nullptr == pTargetEntry)
@@ -1843,7 +1843,7 @@ bool SvxConfigPage::MoveEntryData(
 
 SvxMainMenuOrganizerDialog::SvxMainMenuOrganizerDialog(
     vcl::Window* pParent, SvxEntries* entries,
-    SvxConfigEntry* selection, bool bCreateMenu )
+    SvxConfigEntry const * selection, bool bCreateMenu )
     : ModalDialog(pParent, "MoveMenuDialog", "cui/ui/movemenu.ui")
     , mpEntries(nullptr)
     , bModified(false)
@@ -2561,9 +2561,9 @@ bool ToolbarSaveInData::Apply()
 }
 
 void ToolbarSaveInData::ApplyToolbar(
-    uno::Reference< container::XIndexContainer >& rToolbarBar,
+    uno::Reference< container::XIndexContainer > const & rToolbarBar,
     uno::Reference< lang::XSingleComponentFactory >& rFactory,
-    SvxConfigEntry* pToolbarData )
+    SvxConfigEntry const * pToolbarData )
 {
     uno::Reference<uno::XComponentContext> xContext = ::comphelper::getProcessComponentContext();
 
@@ -2792,7 +2792,7 @@ void ToolbarSaveInData::RestoreToolbar( SvxConfigEntry* pToolbar )
 
 void ToolbarSaveInData::LoadToolbar(
     const uno::Reference< container::XIndexAccess >& xToolbarSettings,
-    SvxConfigEntry* pParentData )
+    SvxConfigEntry const * pParentData )
 {
     SvxEntries*         pEntries            = pParentData->GetEntries();
 
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx
index cd86a24b8cbd..f69f184afed9 100644
--- a/cui/source/customize/cfgutil.cxx
+++ b/cui/source/customize/cfgutil.cxx
@@ -799,7 +799,7 @@ Image SfxConfigGroupListBox::GetImage(
 }
 
 Reference< XInterface  >
-SfxConfigGroupListBox::getDocumentModel( Reference< XComponentContext > const & xCtx, OUString& docName )
+SfxConfigGroupListBox::getDocumentModel( Reference< XComponentContext > const & xCtx, OUString const & docName )
 {
     Reference< XInterface > xModel;
     Reference< frame::XDesktop2 > desktop = frame::Desktop::create( xCtx );
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index d9fb7043e246..fc6d808b7b02 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -868,7 +868,7 @@ IMPL_LINK(SpellDialog, AddToDictSelectHdl, MenuButton*, pButton, void )
 }
 
 
-void SpellDialog::AddToDictionaryExecute( sal_uInt16 nItemId, PopupMenu *pMenu )
+void SpellDialog::AddToDictionaryExecute( sal_uInt16 nItemId, PopupMenu const *pMenu )
 {
     m_pSentenceED->UndoActionStart( SPELLUNDO_CHANGE_GROUP );
 
@@ -1503,7 +1503,7 @@ bool SentenceEditWindow_Impl::PreNotify( NotifyEvent& rNEvt )
     return bChange || VclMultiLineEdit::PreNotify(rNEvt);
 }
 
-void SentenceEditWindow_Impl::Init(VclPtr<ToolBox> &rToolbar)
+void SentenceEditWindow_Impl::Init(VclPtr<ToolBox> const &rToolbar)
 {
     m_xToolbar = rToolbar;
     m_xToolbar->SetSelectHdl(LINK(this,SentenceEditWindow_Impl,ToolbarHdl));
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index fcd2937d10b4..599ec984b70f 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -576,7 +576,7 @@ IMPL_LINK_NOARG(GalleryIdDialog, ClickOkHdl, Button*, void)
 
 
 GalleryThemeProperties::GalleryThemeProperties(vcl::Window* pParent,
-    ExchangeData* _pData, SfxItemSet* pItemSet)
+    ExchangeData* _pData, SfxItemSet const * pItemSet)
     : SfxTabDialog( pParent, "GalleryThemeDialog",
         "cui/ui/gallerythemedialog.ui", pItemSet)
     , pData(_pData)
diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx
index e1da23aef776..bf50ae2b07fd 100644
--- a/cui/source/dialogs/cuihyperdlg.cxx
+++ b/cui/source/dialogs/cuihyperdlg.cxx
@@ -63,7 +63,7 @@ void SvxHlinkCtrl::StateChanged( sal_uInt16 nSID, SfxItemState eState,
         {
             case SID_HYPERLINK_GETLINK :
             {
-                pParent->SetPage( const_cast<SvxHyperlinkItem*>(static_cast<const SvxHyperlinkItem*>(pState)) );
+                pParent->SetPage( static_cast<const SvxHyperlinkItem*>(pState) );
             }
             break;
             case SID_READONLY_MODE :
@@ -299,7 +299,7 @@ IMPL_LINK_NOARG(SvxHpLinkDlg, ClickCloseHdl_Impl, Button*, void)
 |*
 |************************************************************************/
 
-void SvxHpLinkDlg::SetPage ( SvxHyperlinkItem* pItem )
+void SvxHpLinkDlg::SetPage ( SvxHyperlinkItem const * pItem )
 {
     sal_uInt16 nPageId = HyperLinkPageType::INTERNET;
 
diff --git a/cui/source/dialogs/dlgname.cxx b/cui/source/dialogs/dlgname.cxx
index bfbe9fac7c40..d9c2b376bf18 100644
--- a/cui/source/dialogs/dlgname.cxx
+++ b/cui/source/dialogs/dlgname.cxx
@@ -147,7 +147,7 @@ void SvxObjectTitleDescDialog::dispose()
 |*
 \************************************************************************/
 
-SvxMessDialog::SvxMessDialog( vcl::Window* pWindow, const OUString& rText, const OUString& rDesc, Image* pImg )
+SvxMessDialog::SvxMessDialog( vcl::Window* pWindow, const OUString& rText, const OUString& rDesc, Image const * pImg )
     : ModalDialog(pWindow, "MessBox", "cui/ui/messbox.ui")
     , pImage(nullptr)
 {
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx
index c83fd7332e0a..f8b6735ef4ac 100644
--- a/cui/source/dialogs/hangulhanjadlg.cxx
+++ b/cui/source/dialogs/hangulhanjadlg.cxx
@@ -483,7 +483,7 @@ namespace svx
     {
         SelectSuggestionHdl(&rControl);
     }
-    void SuggestionDisplay::SelectSuggestionHdl( Control* pControl )
+    void SuggestionDisplay::SelectSuggestionHdl( Control const * pControl )
     {
         if( m_bInSelectionUpdate )
             return;
@@ -1699,7 +1699,7 @@ namespace svx
         _rEdit.SetText( aStr );
     }
 
-    void HangulHanjaEditDictDialog::EditModify( Edit* _pEdit, sal_uInt8 _nEntryOffset )
+    void HangulHanjaEditDictDialog::EditModify( Edit const * _pEdit, sal_uInt8 _nEntryOffset )
     {
         m_bModifiedSuggestions = true;
 
diff --git a/cui/source/dialogs/hyphen.cxx b/cui/source/dialogs/hyphen.cxx
index 1ac7417e3627..4661c1db37fa 100644
--- a/cui/source/dialogs/hyphen.cxx
+++ b/cui/source/dialogs/hyphen.cxx
@@ -420,7 +420,7 @@ IMPL_LINK_NOARG(SvxHyphenWordDialog, GetFocusHdl_Impl, Control&, void)
 SvxHyphenWordDialog::SvxHyphenWordDialog(
     const OUString &rWord, LanguageType nLang,
     vcl::Window* pParent,
-    uno::Reference< linguistic2::XHyphenator >  &xHyphen,
+    uno::Reference< linguistic2::XHyphenator > const &xHyphen,
     SvxSpellWrapper* pWrapper)
     : SfxModalDialog(pParent, "HyphenateDialog", "cui/ui/hyphenate.ui")
     , m_pHyphWrapper(pWrapper)
diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx
index 63a93180149d..825d846f8635 100644
--- a/cui/source/dialogs/iconcdlg.cxx
+++ b/cui/source/dialogs/iconcdlg.cxx
@@ -283,14 +283,14 @@ void IconChoiceDialog::SetCtrlStyle()
 |
 \**********************************************************************/
 
-void IconChoiceDialog::ShowPageImpl ( IconChoicePageData* pData )
+void IconChoiceDialog::ShowPageImpl ( IconChoicePageData const * pData )
 {
     if ( pData->pPage )
         pData->pPage->Show();
 }
 
 
-void IconChoiceDialog::HidePageImpl ( IconChoicePageData* pData )
+void IconChoiceDialog::HidePageImpl ( IconChoicePageData const * pData )
 {
     if ( pData->pPage )
         pData->pPage->Hide();
diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx
index e65aee2ed72c..94f41590b643 100644
--- a/cui/source/dialogs/linkdlg.cxx
+++ b/cui/source/dialogs/linkdlg.cxx
@@ -678,7 +678,7 @@ void SvBaseLinksDlg::SetType( SvBaseLink& rLink,
         pLinkMgr->GetPersist()->SetModified();
 }
 
-void SvBaseLinksDlg::SetActLink( SvBaseLink * pLink )
+void SvBaseLinksDlg::SetActLink( SvBaseLink const * pLink )
 {
     if( pLinkMgr )
     {
diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
index 999ffacfedee..8b828d86665f 100644
--- a/cui/source/dialogs/scriptdlg.cxx
+++ b/cui/source/dialogs/scriptdlg.cxx
@@ -245,7 +245,7 @@ void SFTreeListBox::Init( const OUString& language  )
 }
 
 Reference< XInterface  >
-SFTreeListBox::getDocumentModel( Reference< XComponentContext >& xCtx, OUString& docName )
+SFTreeListBox::getDocumentModel( Reference< XComponentContext > const & xCtx, OUString const & docName )
 {
     Reference< XInterface > xModel;
     Reference< frame::XDesktop2 > desktop  = frame::Desktop::create(xCtx);
@@ -272,7 +272,7 @@ SFTreeListBox::getDocumentModel( Reference< XComponentContext >& xCtx, OUString&
 }
 
 Reference< browse::XBrowseNode >
-SFTreeListBox::getLangNodeFromRootNode( Reference< browse::XBrowseNode >& rootNode, OUString& language )
+SFTreeListBox::getLangNodeFromRootNode( Reference< browse::XBrowseNode > const & rootNode, OUString const & language )
 {
     Reference< browse::XBrowseNode > langNode;
 
@@ -296,7 +296,7 @@ SFTreeListBox::getLangNodeFromRootNode( Reference< browse::XBrowseNode >& rootNo
     return langNode;
 }
 
-void SFTreeListBox:: RequestSubEntries( SvTreeListEntry* pRootEntry, Reference< css::script::browse::XBrowseNode >& node,
+void SFTreeListBox:: RequestSubEntries( SvTreeListEntry* pRootEntry, Reference< css::script::browse::XBrowseNode > const & node,
                                        Reference< XModel >& model )
 {
     if (! node.is() )
@@ -531,7 +531,7 @@ short SvxScriptOrgDialog::Execute()
     return ModalDialog::Execute();
 }
 
-void SvxScriptOrgDialog::CheckButtons( Reference< browse::XBrowseNode >& node )
+void SvxScriptOrgDialog::CheckButtons( Reference< browse::XBrowseNode > const & node )
 {
     if ( node.is() )
     {
@@ -776,7 +776,7 @@ IMPL_LINK( SvxScriptOrgDialog, ButtonHdl, Button *, pButton, void )
     }
 }
 
-Reference< browse::XBrowseNode > SvxScriptOrgDialog::getBrowseNode( SvTreeListEntry* pEntry )
+Reference< browse::XBrowseNode > SvxScriptOrgDialog::getBrowseNode( SvTreeListEntry const * pEntry )
 {
     Reference< browse::XBrowseNode > node;
     if ( pEntry )
@@ -791,7 +791,7 @@ Reference< browse::XBrowseNode > SvxScriptOrgDialog::getBrowseNode( SvTreeListEn
     return node;
 }
 
-Reference< XModel > SvxScriptOrgDialog::getModel( SvTreeListEntry* pEntry )
+Reference< XModel > SvxScriptOrgDialog::getModel( SvTreeListEntry const * pEntry )
 {
     Reference< XModel > model;
     if ( pEntry )
@@ -1099,8 +1099,8 @@ void SvxScriptOrgDialog::deleteEntry( SvTreeListEntry* pEntry )
 
 }
 
-bool SvxScriptOrgDialog::getBoolProperty( Reference< beans::XPropertySet >& xProps,
-                OUString& propName )
+bool SvxScriptOrgDialog::getBoolProperty( Reference< beans::XPropertySet > const & xProps,
+                OUString const & propName )
 {
     bool result = false;
     try
diff --git a/cui/source/dialogs/sdrcelldlg.cxx b/cui/source/dialogs/sdrcelldlg.cxx
index e64f01f31a8d..f7987988a5b5 100644
--- a/cui/source/dialogs/sdrcelldlg.cxx
+++ b/cui/source/dialogs/sdrcelldlg.cxx
@@ -26,7 +26,7 @@
 #include "border.hxx"
 #include <svx/dialogs.hrc>
 
-SvxFormatCellsDialog::SvxFormatCellsDialog( vcl::Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel )
+SvxFormatCellsDialog::SvxFormatCellsDialog( vcl::Window* pParent, const SfxItemSet* pAttr, SdrModel const * pModel )
     : SfxTabDialog(pParent, "FormatCellsDialog", "cui/ui/formatcellsdialog.ui", pAttr)
     , mrOutAttrs(*pAttr)
     , mpColorTab(pModel->GetColorList())
diff --git a/cui/source/inc/SpellDialog.hxx b/cui/source/inc/SpellDialog.hxx
index aab0989e6751..fb67c063ed9e 100644
--- a/cui/source/inc/SpellDialog.hxx
+++ b/cui/source/inc/SpellDialog.hxx
@@ -81,7 +81,7 @@ public:
     SentenceEditWindow_Impl(vcl::Window* pParent, WinBits nBits);
     virtual ~SentenceEditWindow_Impl() override;
 
-    void            Init(VclPtr<ToolBox> &rToolbar);
+    void            Init(VclPtr<ToolBox> const &rToolbar);
     void            SetModifyHdl(const Link<Edit&,void>& rLink) override { m_aModifyLink = rLink;}
 
     void            SetAttrib( const TextAttrib& rAttr, sal_uLong nPara, sal_uInt16 nStart, sal_uInt16 nEnd );
@@ -194,7 +194,7 @@ private:
 
     DECL_LINK( InitHdl, void*, void );
 
-    void            AddToDictionaryExecute( sal_uInt16 ItemId, PopupMenu *pMenu );
+    void            AddToDictionaryExecute( sal_uInt16 ItemId, PopupMenu const *pMenu );
     void            StartSpellOptDlg_Impl();
     int             InitUserDicts();
     void            UpdateBoxes_Impl();
diff --git a/cui/source/inc/SvxConfigPageHelper.hxx b/cui/source/inc/SvxConfigPageHelper.hxx
index 4b83b1c7dfd6..4f0dd0470a83 100644
--- a/cui/source/inc/SvxConfigPageHelper.hxx
+++ b/cui/source/inc/SvxConfigPageHelper.hxx
@@ -27,7 +27,7 @@
 class SvxConfigPageHelper
 {
 public:
-    static void RemoveEntry( SvxEntries* pEntries, SvxConfigEntry* pChildEntry );
+    static void RemoveEntry( SvxEntries* pEntries, SvxConfigEntry const * pChildEntry );
 
     static OUString replaceSaveInName( const OUString& rMessage, const OUString& rSaveInName );
     static OUString stripHotKey( const OUString& str );
@@ -78,9 +78,9 @@ public:
     static bool showKeyConfigTabPage(
         const css::uno::Reference< css::frame::XFrame >& xFrame );
 
-    static bool EntrySort( SvxConfigEntry* a, SvxConfigEntry* b );
+    static bool EntrySort( SvxConfigEntry const * a, SvxConfigEntry const * b );
 
-    static bool SvxConfigEntryModified( SvxConfigEntry* pEntry );
+    static bool SvxConfigEntryModified( SvxConfigEntry const * pEntry );
 
 };
 
diff --git a/cui/source/inc/acccfg.hxx b/cui/source/inc/acccfg.hxx
index 62480db4e7c7..adc67e208885 100644
--- a/cui/source/inc/acccfg.hxx
+++ b/cui/source/inc/acccfg.hxx
@@ -156,7 +156,7 @@ private:
     DECL_LINK(SaveHdl, sfx2::FileDialogHelper *, void);
 
     OUString                    GetLabel4Command(const OUString& rCommand);
-    SvTreeListEntry*            applySearchFilter(OUString& rSearchTerm, SvTreeListBox* rListBox);
+    SvTreeListEntry*            applySearchFilter(OUString const & rSearchTerm, SvTreeListBox* rListBox);
     void                        InitAccCfg();
     sal_uLong                   MapKeyCodeToPos( const vcl::KeyCode &rCode ) const;
     void                        StartFileDialog( WinBits nBits, const OUString& rTitle );
diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx
index 7da1f441ab4b..405a743efa34 100644
--- a/cui/source/inc/autocdlg.hxx
+++ b/cui/source/inc/autocdlg.hxx
@@ -267,7 +267,7 @@ private:
         DECL_LINK(NewDelButtonHdl, Button*, void);
         DECL_LINK(NewDelActionHdl, AutoCorrEdit&, bool);
         DECL_LINK(ModifyHdl, Edit&, void);
-        bool NewDelHdl(void*);
+        bool NewDelHdl(void const *);
 
         void RefillReplaceBox(  bool bFromReset,
                                 LanguageType eOldLanguage,
@@ -327,7 +327,7 @@ private:
     DECL_LINK(NewDelActionHdl, AutoCorrEdit&, bool);
     DECL_LINK(SelectHdl, ListBox&, void);
     DECL_LINK(ModifyHdl, Edit&, void);
-    bool NewDelHdl(void*);
+    bool NewDelHdl(void const *);
                     /// Box filled with new language
     void            RefillReplaceBoxes(bool bFromReset,
                                         LanguageType eOldLanguage,
diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx
index 6b8950ee5146..f75f4d6f90d2 100644
--- a/cui/source/inc/cfg.hxx
+++ b/cui/source/inc/cfg.hxx
@@ -120,13 +120,13 @@ private:
 protected:
 
     void ApplyMenu(
-        css::uno::Reference< css::container::XIndexContainer >& rMenuBar,
+        css::uno::Reference< css::container::XIndexContainer > const & rMenuBar,
         css::uno::Reference< css::lang::XSingleComponentFactory >& rFactory,
         SvxConfigEntry *pMenuData );
 
     bool LoadSubMenus(
         const css::uno::Reference< css::container::XIndexAccess >& xMenuSettings,
-        const OUString& rBaseTitle, SvxConfigEntry* pParentData, bool bContextMenu );
+        const OUString& rBaseTitle, SvxConfigEntry const * pParentData, bool bContextMenu );
 
 public:
 
@@ -198,7 +198,7 @@ private:
     static MenuSaveInData* GetDefaultData() { return pDefaultData; }
 
     void        Apply(
-        css::uno::Reference< css::container::XIndexContainer >& rNewMenuBar,
+        css::uno::Reference< css::container::XIndexContainer > const & rNewMenuBar,
         css::uno::Reference< css::lang::XSingleComponentFactory >& rFactory );
 
 public:
@@ -442,7 +442,7 @@ protected:
                                         bool bFront = false );
 
     void                AddSubMenusToUI(    const OUString& rBaseTitle,
-                                        SvxConfigEntry* pParentData );
+                                        SvxConfigEntry const * pParentData );
 
     SvTreeListEntry*    InsertEntryIntoUI ( SvxConfigEntry* pNewEntryData,
                                         sal_uLong nPos = TREELIST_APPEND );
@@ -450,7 +450,7 @@ protected:
     SvxEntries*     FindParentForChild( SvxEntries* pParentEntries,
                                         SvxConfigEntry* pChildData );
 
-    void            ReloadTopLevelListBox( SvxConfigEntry* pSelection = nullptr );
+    void            ReloadTopLevelListBox( SvxConfigEntry const * pSelection = nullptr );
 
 public:
 
@@ -467,8 +467,8 @@ public:
 
     virtual void    MoveEntry( bool bMoveUp );
 
-    bool            MoveEntryData(  SvTreeListEntry* pSourceEntry,
-                                    SvTreeListEntry* pTargetEntry );
+    bool            MoveEntryData(  SvTreeListEntry const * pSourceEntry,
+                                    SvTreeListEntry const * pTargetEntry );
 
     bool            FillItemSet( SfxItemSet* ) override;
     void            Reset( const SfxItemSet* ) override;
@@ -517,7 +517,7 @@ class SvxMainMenuOrganizerDialog : public ModalDialog
 public:
     SvxMainMenuOrganizerDialog (
         vcl::Window*, SvxEntries*,
-        SvxConfigEntry*, bool bCreateMenu = false );
+        SvxConfigEntry const *, bool bCreateMenu = false );
     virtual ~SvxMainMenuOrganizerDialog() override;
     virtual void dispose() override;
 
@@ -541,12 +541,12 @@ private:
 
     void        LoadToolbar(
         const css::uno::Reference< css::container::XIndexAccess >& xToolBarSettings,
-        SvxConfigEntry* pParentData );
+        SvxConfigEntry const * pParentData );
 
     void        ApplyToolbar(
-        css::uno::Reference< css::container::XIndexContainer >& rNewToolbarBar,
+        css::uno::Reference< css::container::XIndexContainer > const & rNewToolbarBar,
         css::uno::Reference< css::lang::XSingleComponentFactory >& rFactory,
-        SvxConfigEntry *pToolbar );
+        SvxConfigEntry const *pToolbar );
 
 public:
 
diff --git a/cui/source/inc/cfgutil.hxx b/cui/source/inc/cfgutil.hxx
index e7af1f258d1a..528b26f04b0e 100644
--- a/cui/source/inc/cfgutil.hxx
+++ b/cui/source/inc/cfgutil.hxx
@@ -145,7 +145,7 @@ class SfxConfigGroupListBox : public SvTreeListBox
 
     static css::uno::Reference< css::uno::XInterface  > getDocumentModel(
         css::uno::Reference< css::uno::XComponentContext > const & xCtx,
-        OUString& docName
+        OUString const & docName
     );
 
 
diff --git a/cui/source/inc/chardlg.hxx b/cui/source/inc/chardlg.hxx
index 1b99b60cc5ff..383431046ec4 100644
--- a/cui/source/inc/chardlg.hxx
+++ b/cui/source/inc/chardlg.hxx
@@ -137,7 +137,7 @@ private:
     DECL_LINK( FontModifyEditHdl_Impl, Edit&, void );
     DECL_LINK( FontModifyListBoxHdl_Impl, ListBox&, void );
     DECL_LINK( FontModifyComboBoxHdl_Impl, ComboBox&, void );
-    void FontModifyHdl_Impl(void*);
+    void FontModifyHdl_Impl(void const *);
 
 public:
     using SfxTabPage::ActivatePage;
diff --git a/cui/source/inc/connect.hxx b/cui/source/inc/connect.hxx
index ab291494e7d3..7bacaac3ad16 100644
--- a/cui/source/inc/connect.hxx
+++ b/cui/source/inc/connect.hxx
@@ -59,7 +59,7 @@ private:
 
     DECL_LINK( ChangeAttrEditHdl_Impl, Edit&, void );
     DECL_LINK( ChangeAttrListBoxHdl_Impl, ListBox&, void );
-    void ChangeAttrHdl_Impl(void*);
+    void ChangeAttrHdl_Impl(void const *);
 
 public:
 
diff --git a/cui/source/inc/cuigaldlg.hxx b/cui/source/inc/cuigaldlg.hxx
index 0c623a835460..189a95e3b4f7 100644
--- a/cui/source/inc/cuigaldlg.hxx
+++ b/cui/source/inc/cuigaldlg.hxx
@@ -204,7 +204,7 @@ class GalleryThemeProperties : public SfxTabDialog
     virtual void PageCreated(sal_uInt16 nId, SfxTabPage &rPage) override;
 
 public:
-    GalleryThemeProperties(vcl::Window* pParent, ExchangeData* pData, SfxItemSet* pItemSet);
+    GalleryThemeProperties(vcl::Window* pParent, ExchangeData* pData, SfxItemSet const * pItemSet);
 };
 
 class TPGalleryThemeGeneral : public SfxTabPage
diff --git a/cui/source/inc/cuihyperdlg.hxx b/cui/source/inc/cuihyperdlg.hxx
index 9d7b6954b284..10e1f2d343b2 100644
--- a/cui/source/inc/cuihyperdlg.hxx
+++ b/cui/source/inc/cuihyperdlg.hxx
@@ -96,7 +96,7 @@ public:
 
     virtual void            PageCreated( sal_uInt16 nId, IconChoicePage& rPage ) override;
 
-    void                    SetPage( SvxHyperlinkItem* pItem );
+    void                    SetPage( SvxHyperlinkItem const * pItem );
     void                    SetReadOnlyMode( bool bReadOnly );
     bool             IsHTMLDoc() const { return mbIsHTMLDoc; }
 
diff --git a/cui/source/inc/cuitabarea.hxx b/cui/source/inc/cuitabarea.hxx
index 2f6befc45d3b..0faca3c5cd64 100644
--- a/cui/source/inc/cuitabarea.hxx
+++ b/cui/source/inc/cuitabarea.hxx
@@ -185,7 +185,7 @@ class SvxTransparenceTabPage : public SvxTabPage
     DECL_LINK(ModifyTransparentHdl_Impl, Edit&, void);
     DECL_LINK(ModifiedTrgrEditHdl_Impl, Edit&, void);
     DECL_LINK(ModifiedTrgrListBoxHdl_Impl, ListBox&, void);
-    void ModifiedTrgrHdl_Impl(void*);
+    void ModifiedTrgrHdl_Impl(void const *);
 
     void ActivateLinear(bool bActivate);
     void ActivateGradient(bool bActivate);
@@ -394,7 +394,7 @@ private:
     DECL_LINK( ModifiedListBoxHdl_Impl, ListBox&, void );
     DECL_LINK( ChangeAutoStepHdl_Impl, CheckBox&, void );
     DECL_LINK( ModifiedSliderHdl_Impl, Slider*, void );
-    void ModifiedHdl_Impl(void*);
+    void ModifiedHdl_Impl(void const *);
 
     void SetControlState_Impl( css::awt::GradientStyle eXGS );
     sal_Int32 SearchGradientList(const OUString& rGradientName);
@@ -463,7 +463,7 @@ private:
     DECL_LINK( ToggleHatchBackgroundColor_Impl, CheckBox&, void );
     DECL_LINK( ModifiedBackgroundHdl_Impl, SvxColorListBox&, void );
     DECL_LINK( ModifiedSliderHdl_Impl, Slider*, void );
-    void ModifiedHdl_Impl(void*);
+    void ModifiedHdl_Impl(void const *);
     DECL_LINK( ClickAddHdl_Impl, Button*, void );
     DECL_LINK( ClickModifyHdl_Impl, Button*, void );
     DECL_LINK( ClickRenameHdl_Impl, SvxPresetListBox*, void );
diff --git a/cui/source/inc/cuitabline.hxx b/cui/source/inc/cuitabline.hxx
index 79a4f587c1da..670297f860f4 100644
--- a/cui/source/inc/cuitabline.hxx
+++ b/cui/source/inc/cuitabline.hxx
@@ -176,14 +176,14 @@ private:
     DECL_LINK( ChangeStartClickHdl_Impl, Button*, void );
     DECL_LINK( ChangeStartListBoxHdl_Impl, ListBox&, void );
     DECL_LINK( ChangeStartModifyHdl_Impl, Edit&, void );
-    void ChangeStartHdl_Impl(void*);
+    void ChangeStartHdl_Impl(void const *);
     DECL_LINK( ChangeEndListBoxHdl_Impl, ListBox&, void );
     DECL_LINK( ChangeEndModifyHdl_Impl, Edit&, void );
     DECL_LINK( ChangeEndClickHdl_Impl, Button*, void );
-    void ChangeEndHdl_Impl(void*);
+    void ChangeEndHdl_Impl(void const *);
     DECL_LINK( ChangePreviewListBoxHdl_Impl, SvxColorListBox&, void );
     DECL_LINK( ChangePreviewModifyHdl_Impl, Edit&, void );
-    void ChangePreviewHdl_Impl(void*);
+    void ChangePreviewHdl_Impl(void const *);
     DECL_LINK( ChangeTransparentHdl_Impl, Edit&, void );
 
     DECL_LINK( ChangeEdgeStyleHdl_Impl, ListBox&, void );
@@ -193,8 +193,8 @@ private:
 
     void FillXLSet_Impl();
 
-    void InitSymbols(MenuButton* pButton);
-    void SymbolSelected(MenuButton* pButton);
+    void InitSymbols(MenuButton const * pButton);
+    void SymbolSelected(MenuButton const * pButton);
     void FillListboxes();
 public:
 
@@ -287,7 +287,7 @@ private:
     DECL_LINK( ClickModifyHdl_Impl, Button*, void );
     DECL_LINK( ClickDeleteHdl_Impl, Button*, void );
     DECL_LINK( SelectLinestyleListBoxHdl_Impl, ListBox&, void );
-    void SelectLinestyleHdl_Impl(ListBox*);
+    void SelectLinestyleHdl_Impl(ListBox const *);
     DECL_LINK( ChangePreviewHdl_Impl, Edit&, void );
     DECL_LINK( ChangeNumber1Hdl_Impl, Edit&, void );
     DECL_LINK( ChangeNumber2Hdl_Impl, Edit&, void );
diff --git a/cui/source/inc/dbregister.hxx b/cui/source/inc/dbregister.hxx
index 80b6638ece00..3d3b2591a6cd 100644
--- a/cui/source/inc/dbregister.hxx
+++ b/cui/source/inc/dbregister.hxx
@@ -79,7 +79,7 @@ namespace svx
             @param  _pEntry
                 The entry to remove if the entry will be changed
         */
-        void openLinkDialog(const OUString& _sOldName,const OUString& _sOldLocation,SvTreeListEntry* _pEntry = nullptr);
+        void openLinkDialog(const OUString& _sOldName,const OUString& _sOldLocation,SvTreeListEntry const * _pEntry = nullptr);
 
     public:
         DbRegistrationOptionsPage( vcl::Window* pParent, const SfxItemSet& rSet );
diff --git a/cui/source/inc/dlgname.hxx b/cui/source/inc/dlgname.hxx
index 11dbed3de84a..e1ffd2a1e338 100644
--- a/cui/source/inc/dlgname.hxx
+++ b/cui/source/inc/dlgname.hxx
@@ -142,7 +142,7 @@ private:
     DECL_LINK(Button2Hdl, Button*, void);
 
 public:
-    SvxMessDialog( vcl::Window* pWindow, const OUString& rText, const OUString& rDesc, Image* pImg = nullptr );
+    SvxMessDialog( vcl::Window* pWindow, const OUString& rText, const OUString& rDesc, Image const * pImg = nullptr );
     virtual ~SvxMessDialog() override;
     virtual void dispose() override;
 
diff --git a/cui/source/inc/hangulhanjadlg.hxx b/cui/source/inc/hangulhanjadlg.hxx
index 39241df6fec5..209c1d9d5e4b 100644
--- a/cui/source/inc/hangulhanjadlg.hxx
+++ b/cui/source/inc/hangulhanjadlg.hxx
@@ -81,7 +81,7 @@ namespace svx
 
         DECL_LINK( SelectSuggestionListBoxHdl, ListBox&, void );
         DECL_LINK( SelectSuggestionValueSetHdl, ValueSet*, void );
-        void SelectSuggestionHdl(Control*);
+        void SelectSuggestionHdl(Control const *);
 
         void SetHelpIds();
 
@@ -306,7 +306,7 @@ namespace svx
         void            UpdateButtonStates();
 
         void            SetEditText( Edit& _rEdit, sal_uInt16 _nEntryNum );
-        void            EditModify( Edit* _pEdit, sal_uInt8 _nEntryOffset );
+        void            EditModify( Edit const * _pEdit, sal_uInt8 _nEntryOffset );
 
         bool            DeleteEntryFromDictionary( const css::uno::Reference< css::linguistic2::XConversionDictionary >& xDict );
 
diff --git a/cui/source/inc/hyphen.hxx b/cui/source/inc/hyphen.hxx
index 5670fa18610e..4e756c019c82 100644
--- a/cui/source/inc/hyphen.hxx
+++ b/cui/source/inc/hyphen.hxx
@@ -80,7 +80,7 @@ class SvxHyphenWordDialog : public SfxModalDialog
 public:
     SvxHyphenWordDialog( const OUString &rWord, LanguageType nLang,
                          vcl::Window* pParent,
-                         css::uno::Reference< css::linguistic2::XHyphenator >  &xHyphen,
+                         css::uno::Reference< css::linguistic2::XHyphenator > const &xHyphen,
                          SvxSpellWrapper* pWrapper );
     virtual ~SvxHyphenWordDialog() override;
     virtual void    dispose() override;
diff --git a/cui/source/inc/iconcdlg.hxx b/cui/source/inc/iconcdlg.hxx
index 7efc4e48504e..2c82ead2534c 100644
--- a/cui/source/inc/iconcdlg.hxx
+++ b/cui/source/inc/iconcdlg.hxx
@@ -129,8 +129,8 @@ private:
     void                    FocusOnIcon ( sal_uInt16 nId );
 
 protected:
-    static void             ShowPageImpl ( IconChoicePageData* pData );
-    static void             HidePageImpl ( IconChoicePageData* pData );
+    static void             ShowPageImpl ( IconChoicePageData const * pData );
+    static void             HidePageImpl ( IconChoicePageData const * pData );
 
     virtual void            PageCreated( sal_uInt16 nId, IconChoicePage& rPage );
     IconChoicePage*  GetTabPage( sal_uInt16 nPageId )
diff --git a/cui/source/inc/linkdlg.hxx b/cui/source/inc/linkdlg.hxx
index cd236db2ab5a..ecfcd3855fa4 100644
--- a/cui/source/inc/linkdlg.hxx
+++ b/cui/source/inc/linkdlg.hxx
@@ -84,7 +84,7 @@ public:
     SvBaseLinksDlg( vcl::Window * pParent, sfx2::LinkManager*, bool bHtml = false );
     virtual ~SvBaseLinksDlg() override;
     virtual void dispose() override;
-    void SetActLink( sfx2::SvBaseLink * pLink );
+    void SetActLink( sfx2::SvBaseLink const * pLink );
 };
 
 #endif // INCLUDED_CUI_SOURCE_INC_LINKDLG_HXX
diff --git a/cui/source/inc/macroass.hxx b/cui/source/inc/macroass.hxx
index e7fcd756e29f..d7b631f8c21e 100644
--- a/cui/source/inc/macroass.hxx
+++ b/cui/source/inc/macroass.hxx
@@ -42,7 +42,7 @@ class SfxMacroTabPage : public SfxTabPage
 
     DECL_LINK( AssignDeleteHdl_Impl, SvTreeListBox*, bool );
     DECL_LINK( AssignDeleteClickHdl_Impl, Button *, void );
-    bool                        AssignDeleteHdl(Control *);
+    bool                        AssignDeleteHdl(Control const *);
     DECL_LINK( TimeOut_Impl, Timer*, void );
 
 protected:
diff --git a/cui/source/inc/measure.hxx b/cui/source/inc/measure.hxx
index 1cece6f8cab7..bebb57ee1857 100644
--- a/cui/source/inc/measure.hxx
+++ b/cui/source/inc/measure.hxx
@@ -64,7 +64,7 @@ private:
     DECL_LINK( ChangeAttrEditHdl_Impl, Edit&, void );
     DECL_LINK( ChangeAttrListBoxHdl_Impl, ListBox&, void );
     DECL_LINK( ChangeAttrClickHdl_Impl, Button*, void );
-    void ChangeAttrHdl_Impl(void*);
+    void ChangeAttrHdl_Impl(void const *);
 
 public:
 
diff --git a/cui/source/inc/numfmt.hxx b/cui/source/inc/numfmt.hxx
index f49f0077e130..8e8d85784d63 100644
--- a/cui/source/inc/numfmt.hxx
+++ b/cui/source/inc/numfmt.hxx
@@ -155,8 +155,8 @@ private:
     DECL_LINK( OptEditHdl_Impl, Edit&, void );
     DECL_LINK( OptClickHdl_Impl, Button*, void );
     DECL_LINK( TimeHdl_Impl, Timer *, void);
-    void EditHdl_Impl(Edit*);
-    void OptHdl_Impl(void*);
+    void EditHdl_Impl(Edit const *);
+    void OptHdl_Impl(void const *);
 };
 
 #endif
diff --git a/cui/source/inc/optdict.hxx b/cui/source/inc/optdict.hxx
index c4f4905442b9..fb8cd6deb364 100644
--- a/cui/source/inc/optdict.hxx
+++ b/cui/source/inc/optdict.hxx
@@ -125,14 +125,14 @@ private:
     DECL_LINK(NewDelButtonHdl, Button*, void);
     DECL_LINK(NewDelActionHdl, SvxDictEdit&, bool);
     DECL_LINK(ModifyHdl, Edit&, void);
-    bool NewDelHdl(void*);
+    bool NewDelHdl(void const *);
 
 
     void            ShowWords_Impl( sal_uInt16 nId );
     void            SetLanguage_Impl( LanguageType nLanguage );
     bool            IsDicReadonly_Impl() const { return bDicIsReadonly; }
     void            SetDicReadonly_Impl( css::uno::Reference<
-                            css::linguistic2::XDictionary >  &xDic );
+                            css::linguistic2::XDictionary > const &xDic );
 
     void            RemoveDictEntry(SvTreeListEntry* pEntry);
     sal_uLong       GetLBInsertPos(const OUString &rDicWord);
diff --git a/cui/source/inc/optlingu.hxx b/cui/source/inc/optlingu.hxx
index e192d36f1c31..608091108aa6 100644
--- a/cui/source/inc/optlingu.hxx
+++ b/cui/source/inc/optlingu.hxx
@@ -81,7 +81,7 @@ class SvxEditModulesDlg : public ModalDialog
     DECL_LINK( LangSelectListBoxHdl_Impl, ListBox&, void );
     DECL_LINK( BoxCheckButtonHdl_Impl2, SvLBoxButtonData*, void );
     DECL_LINK( BoxCheckButtonHdl_Impl, SvTreeListBox*, void );
-    void LangSelectHdl_Impl(ListBox*);
+    void LangSelectHdl_Impl(ListBox const *);
 
 public:
     SvxEditModulesDlg(vcl::Window* pParent, SvxLinguData_Impl& rData);
diff --git a/cui/source/inc/scriptdlg.hxx b/cui/source/inc/scriptdlg.hxx
index 0fdc0fd1e202..6cdcde954fa2 100644
--- a/cui/source/inc/scriptdlg.hxx
+++ b/cui/source/inc/scriptdlg.hxx
@@ -55,10 +55,10 @@ private:
     OUString m_sProdMacros;
 
     static css::uno::Reference< css::script::browse::XBrowseNode >
-        getLangNodeFromRootNode( css::uno::Reference< css::script::browse::XBrowseNode >& root, OUString& language );
+        getLangNodeFromRootNode( css::uno::Reference< css::script::browse::XBrowseNode > const & root, OUString const & language );
     static void delUserData( SvTreeListEntry* pEntry );
 
-    static css::uno::Reference< css::uno::XInterface  > getDocumentModel( css::uno::Reference< css::uno::XComponentContext >& xCtx, OUString& docName );
+    static css::uno::Reference< css::uno::XInterface  > getDocumentModel( css::uno::Reference< css::uno::XComponentContext > const & xCtx, OUString const & docName );
 
 protected:
     virtual void            RequestingChildren( SvTreeListEntry* pParent ) override;
@@ -67,7 +67,7 @@ protected:
 public:
     void                    Init( const OUString& language );
     void                    RequestSubEntries(  SvTreeListEntry* pRootEntry,
-                                css::uno::Reference< css::script::browse::XBrowseNode >& node,
+                                css::uno::Reference< css::script::browse::XBrowseNode > const & node,
                                 css::uno::Reference< css::frame::XModel>& model  );
                             SFTreeListBox(vcl::Window* pParent);
                     virtual ~SFTreeListBox() override;
@@ -151,16 +151,16 @@ protected:
 
     DECL_LINK( ScriptSelectHdl, SvTreeListBox *, void );
     DECL_LINK( ButtonHdl, Button *, void );
-    static bool         getBoolProperty( css::uno::Reference< css::beans::XPropertySet >& xProps, OUString& propName );
-    void                CheckButtons(  css::uno::Reference< css::script::browse::XBrowseNode >& node );
+    static bool         getBoolProperty( css::uno::Reference< css::beans::XPropertySet > const & xProps, OUString const & propName );
+    void                CheckButtons(  css::uno::Reference< css::script::browse::XBrowseNode > const & node );
 
 
     void        createEntry( SvTreeListEntry* pEntry );
     void        renameEntry( SvTreeListEntry* pEntry );
     void        deleteEntry( SvTreeListEntry* pEntry );
     static css::uno::Reference< css::script::browse::XBrowseNode >
-                getBrowseNode( SvTreeListEntry* pEntry );
-    static css::uno::Reference< css::frame::XModel > getModel( SvTreeListEntry* pEntry );
+                getBrowseNode( SvTreeListEntry const * pEntry );
+    static css::uno::Reference< css::frame::XModel > getModel( SvTreeListEntry const * pEntry );
     OUString    getListOfChildren( const css::uno::Reference< css::script::browse::XBrowseNode >& node, int depth );
     void        StoreCurrentSelection();
     void        RestorePreviousSelection();
diff --git a/cui/source/inc/sdrcelldlg.hxx b/cui/source/inc/sdrcelldlg.hxx
index f5939979b96d..f5976be5d7f6 100644
--- a/cui/source/inc/sdrcelldlg.hxx
+++ b/cui/source/inc/sdrcelldlg.hxx
@@ -39,7 +39,7 @@ private:
     sal_uInt16          m_nBorderPageId;
 
 public:
-    SvxFormatCellsDialog( vcl::Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel );
+    SvxFormatCellsDialog( vcl::Window* pParent, const SfxItemSet* pAttr, SdrModel const * pModel );
 
     virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) override;
 
diff --git a/cui/source/inc/swpossizetabpage.hxx b/cui/source/inc/swpossizetabpage.hxx
index ff83afe71892..ed4b555c583a 100644
--- a/cui/source/inc/swpossizetabpage.hxx
+++ b/cui/source/inc/swpossizetabpage.hxx
@@ -107,9 +107,9 @@ class SvxSwPosSizeTabPage : public SfxTabPage
     void            InitPos(RndStdIds nAnchorType, sal_uInt16 nH, sal_uInt16 nHRel,
                             sal_uInt16 nV,  sal_uInt16 nVRel,
                             long   nX,  long   nY);
-    static sal_uInt16   GetMapPos(FrmMap *pMap, ListBox &rAlignLB);
-    static short        GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBox &rAlignLB, ListBox &rRelationLB);
-    static short        GetRelation(FrmMap *pMap, ListBox &rRelationLB);
+    static sal_uInt16   GetMapPos(FrmMap *pMap, ListBox const &rAlignLB);
+    static short        GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBox &rAlignLB, ListBox const &rRelationLB);
+    static short        GetRelation(FrmMap *pMap, ListBox const &rRelationLB);
     RndStdIds           GetAnchorType(bool* pbHasChanged = nullptr);
     void                FillRelLB(FrmMap *pMap, sal_uInt16 nLBSelPos, sal_uInt16 nAlign, sal_uInt16 nRel, ListBox &rLB, FixedText &rFT);
     sal_uInt16          FillPosLB(FrmMap *pMap, sal_uInt16 nAlign, const sal_uInt16 _nRel, ListBox &rLB);
diff --git a/cui/source/options/dbregister.cxx b/cui/source/options/dbregister.cxx
index a2590311aae3..de9900e33372 100644
--- a/cui/source/options/dbregister.cxx
+++ b/cui/source/options/dbregister.cxx
@@ -404,7 +404,7 @@ void DbRegistrationOptionsPage::insertNewEntry( const OUString& _sName,const OUS
 }
 
 
-void DbRegistrationOptionsPage::openLinkDialog(const OUString& _sOldName,const OUString& _sOldLocation,SvTreeListEntry* _pEntry)
+void DbRegistrationOptionsPage::openLinkDialog(const OUString& _sOldName,const OUString& _sOldLocation,SvTreeListEntry const * _pEntry)
 {
     ScopedVclPtrInstance< ODocumentLinkDialog > aDlg(this,_pEntry == nullptr);
 
diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx
index d667c943dd8e..f059f064f8c8 100644
--- a/cui/source/options/fontsubs.cxx
+++ b/cui/source/options/fontsubs.cxx
@@ -268,7 +268,7 @@ IMPL_LINK(SvxFontSubstTabPage, SelectEditHdl, Edit&, rBox, void)
 {
     SelectHdl(&rBox);
 }
-void SvxFontSubstTabPage::SelectHdl(vcl::Window* pWin)
+void SvxFontSubstTabPage::SelectHdl(vcl::Window const * pWin)
 {
     if (pWin == m_pApply || pWin == m_pDelete)
     {
diff --git a/cui/source/options/fontsubs.hxx b/cui/source/options/fontsubs.hxx
index 4c5e7bf670f5..22ba5caa861b 100644
--- a/cui/source/options/fontsubs.hxx
+++ b/cui/source/options/fontsubs.hxx
@@ -86,7 +86,7 @@ class SvxFontSubstTabPage : public SfxTabPage
     DECL_LINK(ClickHdl, Button*, void);
     DECL_LINK(TreeListBoxSelectHdl, SvTreeListBox*, void);
     DECL_LINK(NonPropFontsHdl, Button*, void);
-    void SelectHdl(vcl::Window*);
+    void SelectHdl(vcl::Window const *);
 
     SvTreeListEntry*    CreateEntry(OUString& rFont1, OUString& rFont2);
     void            CheckEnable();
diff --git a/cui/source/options/optasian.cxx b/cui/source/options/optasian.cxx
index 2c011898d484..07cc8d3cb883 100644
--- a/cui/source/options/optasian.cxx
+++ b/cui/source/options/optasian.cxx
@@ -68,7 +68,7 @@ struct SvxAsianLayoutPage_Impl
 
     bool                hasForbiddenCharacters(LanguageType eLang);
     SvxForbiddenChars_Impl* getForbiddenCharacters(LanguageType eLang);
-    void                    addForbiddenCharacters(LanguageType eLang, ForbiddenCharacters* pForbidden);
+    void                    addForbiddenCharacters(LanguageType eLang, ForbiddenCharacters const * pForbidden);
 };
 
 SvxAsianLayoutPage_Impl::~SvxAsianLayoutPage_Impl()
@@ -95,7 +95,7 @@ SvxForbiddenChars_Impl* SvxAsianLayoutPage_Impl::getForbiddenCharacters(Language
 }
 
 void SvxAsianLayoutPage_Impl::addForbiddenCharacters(
-    LanguageType eLang, ForbiddenCharacters* pForbidden)
+    LanguageType eLang, ForbiddenCharacters const * pForbidden)
 {
     SvxForbiddenCharacterMap_Impl::iterator itOld = aChangedLanguagesMap.find( eLang );
     if( itOld == aChangedLanguagesMap.end() )
diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx
index 7d70a458dc79..998ceaedbdfa 100644
--- a/cui/source/options/optcolor.cxx
+++ b/cui/source/options/optcolor.cxx
@@ -181,7 +181,7 @@ public:
     unsigned GetEntryHeight () const { return vEntries[0]->GetHeight(); }
     void Update (EditableColorConfig const*, EditableExtendedColorConfig const*);
     void ScrollHdl(const ScrollBar&);
-    void ClickHdl (EditableColorConfig*, CheckBox*);
+    void ClickHdl (EditableColorConfig*, CheckBox const *);
     void ColorHdl (EditableColorConfig*, EditableExtendedColorConfig*, SvxColorListBox*);
     void Init(ScrollBar *pVScroll, HeaderBar *m_pHeaderHB);
     void AdjustScrollBar();
@@ -226,7 +226,7 @@ private:
         long GetTop () const { return m_pPreview->GetPosPixel().Y(); }
         unsigned GetHeight () const { return m_pColorList->GetSizePixel().Height(); }
     public:
-        bool Is (CheckBox* pBox) const { return m_pText == pBox; }
+        bool Is (CheckBox const * pBox) const { return m_pText.get() == pBox; }
         bool Is (SvxColorListBox* pBox) const { return m_pColorList == pBox; }
         void dispose()
         {
@@ -695,7 +695,7 @@ void ColorConfigWindow_Impl::ScrollHdl(const ScrollBar& rVScroll)
 }
 
 // ClickHdl()
-void ColorConfigWindow_Impl::ClickHdl (EditableColorConfig* pConfig, CheckBox* pBox)
+void ColorConfigWindow_Impl::ClickHdl (EditableColorConfig* pConfig, CheckBox const * pBox)
 {
     for (unsigned i = 0; i != ColorConfigEntryCount; ++i)
     {
diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx
index 9d1bfcf90825..339eaef3914b 100644
--- a/cui/source/options/optdict.cxx
+++ b/cui/source/options/optdict.cxx
@@ -354,7 +354,7 @@ void SvxEditDictionaryDialog::Paint( const Rectangle& rRect )
 
 
 void SvxEditDictionaryDialog::SetDicReadonly_Impl(
-            Reference< XDictionary >  &xDic )
+            Reference< XDictionary > const &xDic )
 {
     // enable or disable new and delete button according to file attributes
     bDicIsReadonly = true;
@@ -576,7 +576,7 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelActionHdl, SvxDictEdit&, rDictEdit, boo
 {
     return NewDelHdl(&rDictEdit);
 }
-bool SvxEditDictionaryDialog::NewDelHdl(void* pBtn)
+bool SvxEditDictionaryDialog::NewDelHdl(void const * pBtn)
 {
     SvTreeListEntry* pEntry = pWordsLB->FirstSelected();
 
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx
index 0f4d942194a6..76609fa4413e 100644
--- a/cui/source/options/optlingu.cxx
+++ b/cui/source/options/optlingu.cxx
@@ -1920,7 +1920,7 @@ IMPL_LINK( SvxEditModulesDlg, LangSelectListBoxHdl_Impl, ListBox&, rBox, void )
     LangSelectHdl_Impl(&rBox);
 }
 
-void SvxEditModulesDlg::LangSelectHdl_Impl(ListBox* pBox)
+void SvxEditModulesDlg::LangSelectHdl_Impl(ListBox const * pBox)
 {
     LanguageType  eCurLanguage = m_pLanguageLB->GetSelectLanguage();
     static Locale aLastLocale;
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index 60228c8a9550..32d5d88e1f46 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -216,7 +216,7 @@ IMPL_LINK( SelectPersonaDialog, SelectPersona, Button*, pButton, void )
     }
 }
 
-void SelectPersonaDialog::SetAppliedPersonaSetting( OUString& rPersonaSetting )
+void SelectPersonaDialog::SetAppliedPersonaSetting( OUString const & rPersonaSetting )
 {
     m_aAppliedPersona = rPersonaSetting;
 }
@@ -245,7 +245,7 @@ void SelectPersonaDialog::SetImages( const Image& aImage, sal_Int32 nIndex )
     m_vResultList[nIndex]->SetModeImage( aImage );
 }
 
-void SelectPersonaDialog::AddPersonaSetting( OUString& rPersonaSetting )
+void SelectPersonaDialog::AddPersonaSetting( OUString const & rPersonaSetting )
 {
     m_vPersonaSettings.push_back( rPersonaSetting );
 }
diff --git a/cui/source/options/personalization.hxx b/cui/source/options/personalization.hxx
index c2053a15e42e..9d5e057c8c34 100644
--- a/cui/source/options/personalization.hxx
+++ b/cui/source/options/personalization.hxx
@@ -100,9 +100,9 @@ public:
     OUString GetSelectedPersona() const;
     void SetProgress( const OUString& );
     void SetImages( const Image&, sal_Int32 );
-    void AddPersonaSetting( OUString& );
+    void AddPersonaSetting( OUString const & );
     void ClearSearchResults();
-    void SetAppliedPersonaSetting( OUString& );
+    void SetAppliedPersonaSetting( OUString const & );
     const OUString& GetAppliedPersonaSetting() const;
 
 private:
diff --git a/cui/source/options/securityoptions.cxx b/cui/source/options/securityoptions.cxx
index 0b9d6dd7c94e..8bf3c66d0a39 100644
--- a/cui/source/options/securityoptions.cxx
+++ b/cui/source/options/securityoptions.cxx
@@ -40,7 +40,7 @@ namespace svx
 {
 
 
-SecurityOptionsDialog::SecurityOptionsDialog(vcl::Window* pParent, SvtSecurityOptions* pOptions)
+SecurityOptionsDialog::SecurityOptionsDialog(vcl::Window* pParent, SvtSecurityOptions const * pOptions)
     : ModalDialog(pParent, "SecurityOptionsDialog", "cui/ui/securityoptionsdialog.ui")
 {
     DBG_ASSERT( pOptions, "SecurityOptionsDialog::SecurityOptionsDialog(): invalid SvtSecurityOptions" );
diff --git a/cui/source/options/securityoptions.hxx b/cui/source/options/securityoptions.hxx
index 4baf800bbf68..8665416f971b 100644
--- a/cui/source/options/securityoptions.hxx
+++ b/cui/source/options/securityoptions.hxx
@@ -44,7 +44,7 @@ namespace svx
         VclPtr<CheckBox> m_pBlockUntrustedRefererLinksCB;
 
     public:
-        SecurityOptionsDialog( vcl::Window* pParent, SvtSecurityOptions* pOptions );
+        SecurityOptionsDialog( vcl::Window* pParent, SvtSecurityOptions const * pOptions );
         virtual ~SecurityOptionsDialog() override;
         virtual void dispose() override;
 
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index f3f75e8c60cb..29050221f155 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -1695,7 +1695,7 @@ void OfaTreeOptionsDialog::Initialize( const Reference< XFrame >& _xFrame )
     }
 }
 
-bool isNodeActive( OptionsNode* pNode, Module* pModule )
+bool isNodeActive( OptionsNode const * pNode, Module* pModule )
 {
     if ( pNode )
     {
@@ -1992,7 +1992,7 @@ static sal_uInt16 lcl_getGroupId( const OUString& rGroupName, const SvTreeListBo
 }
 
 static void lcl_insertLeaf(
-    OfaTreeOptionsDialog* pDlg, OptionsNode* pNode, OptionsLeaf* pLeaf, const SvTreeListBox& rTreeLB )
+    OfaTreeOptionsDialog* pDlg, OptionsNode const * pNode, OptionsLeaf const * pLeaf, const SvTreeListBox& rTreeLB )
 {
     sal_uInt16 nGrpId = lcl_getGroupId( pNode->m_sLabel, rTreeLB );
     if ( USHRT_MAX == nGrpId )
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 308fa651eb78..477a6e278af1 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -157,7 +157,7 @@ void OfaAutoCorrDlg::EnableLanguage(bool bEnable)
 }
 
 static bool lcl_FindEntry( ListBox& rLB, const OUString& rEntry,
-                    CollatorWrapper& rCmpClass )
+                    CollatorWrapper const & rCmpClass )
 {
     sal_Int32 nCount = rLB.GetEntryCount();
     sal_Int32 nSelPos = rLB.GetSelectEntryPos();
@@ -1219,7 +1219,7 @@ IMPL_LINK(OfaAutocorrReplacePage, NewDelActionHdl, AutoCorrEdit&, rEdit, bool)
 {
     return NewDelHdl(&rEdit);
 }
-bool OfaAutocorrReplacePage::NewDelHdl(void* pBtn)
+bool OfaAutocorrReplacePage::NewDelHdl(void const * pBtn)
 {
     SvTreeListEntry* pEntry = m_pReplaceTLB->FirstSelected();
     if( pBtn == m_pDeleteReplacePB )
@@ -1670,7 +1670,7 @@ IMPL_LINK(OfaAutocorrExceptPage, NewDelActionHdl, AutoCorrEdit&, rEdit, bool)
     return NewDelHdl(&rEdit);
 }
 
-bool OfaAutocorrExceptPage::NewDelHdl(void* pBtn)
+bool OfaAutocorrExceptPage::NewDelHdl(void const * pBtn)
 {
     if((pBtn == m_pNewAbbrevPB || pBtn == m_pAbbrevED.get() )
         && !m_pAbbrevED->GetText().isEmpty())
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx
index 6e82f808fb38..a338057e7a1a 100644
--- a/cui/source/tabpages/backgrnd.cxx
+++ b/cui/source/tabpages/backgrnd.cxx
@@ -98,7 +98,7 @@ struct SvxBackgroundPage_Impl
 };
 
 /// Returns the fill style of the currently selected entry.
-static drawing::FillStyle lcl_getFillStyle(ListBox* pLbSelect)
+static drawing::FillStyle lcl_getFillStyle(ListBox const * pLbSelect)
 {
     return (drawing::FillStyle)reinterpret_cast<sal_uLong>(pLbSelect->GetSelectEntryData());
 }
@@ -116,7 +116,7 @@ static void lcl_setFillStyle(ListBox* pLbSelect, drawing::FillStyle eStyle)
     }
 }
 
-sal_uInt16 GetItemId_Impl( ValueSet& rValueSet, const Color& rCol )
+sal_uInt16 GetItemId_Impl( ValueSet const & rValueSet, const Color& rCol )
 {
     bool    bFound = false;
     sal_uInt16  nCount = rValueSet.GetItemCount();
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index fa1054c2a9ca..8c67cf48f2e3 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -456,7 +456,7 @@ const FontList* SvxCharNamePage::GetFontList() const
 namespace
 {
     FontMetric calcFontMetrics(  SvxFont& _rFont,
-                    SvxCharNamePage* _pPage,
+                    SvxCharNamePage const * _pPage,
                     const FontNameBox* _pFontNameLB,
                     const FontStyleBox* _pFontStyleLB,
                     const FontSizeBox* _pFontSizeLB,
@@ -1173,14 +1173,14 @@ IMPL_LINK( SvxCharNamePage, FontModifyEditHdl_Impl, Edit&, rBox, void )
 {
     FontModifyHdl_Impl(&rBox);
 }
-void SvxCharNamePage::FontModifyHdl_Impl(void* pNameBox)
+void SvxCharNamePage::FontModifyHdl_Impl(void const * pNameBox)
 {
     m_pImpl->m_aUpdateIdle.Start();
 
     if ( m_pWestFontNameLB == pNameBox || m_pEastFontNameLB == pNameBox || m_pCTLFontNameLB == pNameBox )
     {
-        FillStyleBox_Impl( static_cast<FontNameBox*>(pNameBox) );
-        FillSizeBox_Impl( static_cast<FontNameBox*>(pNameBox) );
+        FillStyleBox_Impl( static_cast<FontNameBox const *>(pNameBox) );
+        FillSizeBox_Impl( static_cast<FontNameBox const *>(pNameBox) );
     }
 }
 
@@ -1254,7 +1254,7 @@ void SvxCharNamePage::SetFontList( const SvxFontListItem& rItem )
 
 namespace
 {
-    void enableRelativeMode( SvxCharNamePage* _pPage, FontSizeBox* _pFontSizeLB, sal_uInt16 _nHeightWhich )
+    void enableRelativeMode( SvxCharNamePage const * _pPage, FontSizeBox* _pFontSizeLB, sal_uInt16 _nHeightWhich )
     {
         _pFontSizeLB->EnableRelativeMode( 5, 995 ); // min 5%, max 995%, step 5
 
diff --git a/cui/source/tabpages/connect.cxx b/cui/source/tabpages/connect.cxx
index 2060dabdd87e..aedcdeec4946 100644
--- a/cui/source/tabpages/connect.cxx
+++ b/cui/source/tabpages/connect.cxx
@@ -403,7 +403,7 @@ IMPL_LINK( SvxConnectionPage, ChangeAttrEditHdl_Impl, Edit&, r, void )
 {
     ChangeAttrHdl_Impl(&r);
 }
-void SvxConnectionPage::ChangeAttrHdl_Impl(void* p)
+void SvxConnectionPage::ChangeAttrHdl_Impl(void const * p)
 {
     if( p == m_pMtrFldHorz1 )
     {
diff --git a/cui/source/tabpages/grfpage.cxx b/cui/source/tabpages/grfpage.cxx
index 4d95cf2fabe8..3661f5b74de4 100644
--- a/cui/source/tabpages/grfpage.cxx
+++ b/cui/source/tabpages/grfpage.cxx
@@ -40,7 +40,7 @@
 #define TWIP_TO_INCH        1440
 
 
-static inline long lcl_GetValue( MetricField& rMetric, FieldUnit eUnit )
+static inline long lcl_GetValue( MetricField const & rMetric, FieldUnit eUnit )
 {
     return static_cast<long>(rMetric.Denormalize( rMetric.GetValue( eUnit )));
 }
diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx
index a2b61d49e812..a1a576b1b064 100644
--- a/cui/source/tabpages/macroass.cxx
+++ b/cui/source/tabpages/macroass.cxx
@@ -92,7 +92,7 @@ static long nTabs[] =
 
 #define LB_MACROS_ITEMPOS   2
 
-OUString ConvertToUIName_Impl( SvxMacro *pMacro )
+OUString ConvertToUIName_Impl( SvxMacro const *pMacro )
 {
     OUString aName( pMacro->GetMacName() );
     OUString aEntry;
@@ -312,7 +312,7 @@ IMPL_LINK( SfxMacroTabPage, AssignDeleteHdl_Impl, SvTreeListBox*, pBtn, bool )
     return AssignDeleteHdl(pBtn);
 }
 
-bool SfxMacroTabPage::AssignDeleteHdl(Control* pBtn)
+bool SfxMacroTabPage::AssignDeleteHdl(Control const * pBtn)
 {
     SvHeaderTabListBox& rListBox = mpImpl->pEventLB->GetListBox();
     SvTreeListEntry* pE = rListBox.FirstSelected();
diff --git a/cui/source/tabpages/measure.cxx b/cui/source/tabpages/measure.cxx
index 4ffd4d87629b..86a3481f0f23 100644
--- a/cui/source/tabpages/measure.cxx
+++ b/cui/source/tabpages/measure.cxx
@@ -673,7 +673,7 @@ IMPL_LINK( SvxMeasurePage, ChangeAttrEditHdl_Impl, Edit&, rBox, void )
 {
     ChangeAttrHdl_Impl(&rBox);
 }
-void SvxMeasurePage::ChangeAttrHdl_Impl( void* p )
+void SvxMeasurePage::ChangeAttrHdl_Impl( void const * p )
 {
     if( p == m_pMtrFldLineDist )
     {
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx
index e417c2548341..12378a6b356a 100644
--- a/cui/source/tabpages/numfmt.cxx
+++ b/cui/source/tabpages/numfmt.cxx
@@ -1521,7 +1521,7 @@ IMPL_LINK( SvxNumberFormatTabPage, EditModifyHdl_Impl, Edit&, rEdit, void )
 {
     EditHdl_Impl(&rEdit);
 }
-void SvxNumberFormatTabPage::EditHdl_Impl( Edit* pEdFormat )
+void SvxNumberFormatTabPage::EditHdl_Impl( Edit const * pEdFormat )
 {
     sal_uInt32 nCurKey = NUMKEY_UNDEFINED;
 
@@ -1596,7 +1596,7 @@ IMPL_LINK( SvxNumberFormatTabPage, OptEditHdl_Impl, Edit&, rEdit, void )
 {
     OptHdl_Impl(&rEdit);
 }
-void SvxNumberFormatTabPage::OptHdl_Impl( void* pOptCtrl )
+void SvxNumberFormatTabPage::OptHdl_Impl( void const * pOptCtrl )
 {
     if (   (pOptCtrl == m_pEdLeadZeroes)
         || (pOptCtrl == m_pEdDecimals)
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx
index 24d60aa85c14..7e6cfcfc1dc6 100644
--- a/cui/source/tabpages/numpages.cxx
+++ b/cui/source/tabpages/numpages.cxx
@@ -144,7 +144,7 @@ static const sal_Unicode aBulletTypes[] =
 };
 
 // Is one of the masked formats set?
-static bool lcl_IsNumFmtSet(SvxNumRule* pNum, sal_uInt16 nLevelMask)
+static bool lcl_IsNumFmtSet(SvxNumRule const * pNum, sal_uInt16 nLevelMask)
 {
     bool bRet = false;
     sal_uInt16 nMask = 1;
diff --git a/cui/source/tabpages/swpossizetabpage.cxx b/cui/source/tabpages/swpossizetabpage.cxx
index 3dca342abc17..f75e1460ffe5 100644
--- a/cui/source/tabpages/swpossizetabpage.cxx
+++ b/cui/source/tabpages/swpossizetabpage.cxx
@@ -1396,7 +1396,7 @@ IMPL_LINK_NOARG(SvxSwPosSizeTabPage, ProtectHdl, Button*, void)
     m_pSizeCB->Enable(m_pPositionCB->IsEnabled() && !m_pPositionCB->IsChecked());
 }
 
-short SvxSwPosSizeTabPage::GetRelation(FrmMap *, ListBox &rRelationLB)
+short SvxSwPosSizeTabPage::GetRelation(FrmMap *, ListBox const &rRelationLB)
 {
     short nRel = 0;
     sal_Int32 nPos = rRelationLB.GetSelectEntryPos();
@@ -1410,7 +1410,7 @@ short SvxSwPosSizeTabPage::GetRelation(FrmMap *, ListBox &rRelationLB)
     return nRel;
 }
 
-short SvxSwPosSizeTabPage::GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBox &/*rAlignLB*/, ListBox &rRelationLB)
+short SvxSwPosSizeTabPage::GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBox &/*rAlignLB*/, ListBox const &rRelationLB)
 {
     short nAlign = 0;
 
@@ -1445,7 +1445,7 @@ short SvxSwPosSizeTabPage::GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBo
     return nAlign;
 }
 
-sal_uInt16 SvxSwPosSizeTabPage::GetMapPos(FrmMap *pMap, ListBox &rAlignLB)
+sal_uInt16 SvxSwPosSizeTabPage::GetMapPos(FrmMap *pMap, ListBox const &rAlignLB)
 {
     sal_uInt16 nMapPos = 0;
     sal_Int32 nLBSelPos = rAlignLB.GetSelectEntryPos();
diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx
index e7dd9822abb5..aa58716c61cf 100644
--- a/cui/source/tabpages/tpgradnt.cxx
+++ b/cui/source/tabpages/tpgradnt.cxx
@@ -319,7 +319,7 @@ IMPL_LINK_NOARG( SvxGradientTabPage, ChangeAutoStepHdl_Impl, CheckBox&, void )
     ModifiedHdl_Impl(m_pMtrIncrement);
 }
 
-void SvxGradientTabPage::ModifiedHdl_Impl( void* pControl )
+void SvxGradientTabPage::ModifiedHdl_Impl( void const * pControl )
 {
     if( pControl == m_pMtrBorder )
         m_pSliderBorder->SetThumbPos( m_pMtrBorder->GetValue() );
diff --git a/cui/source/tabpages/tphatch.cxx b/cui/source/tabpages/tphatch.cxx
index 951fcdfb2e85..ca9c2abb777e 100644
--- a/cui/source/tabpages/tphatch.cxx
+++ b/cui/source/tabpages/tphatch.cxx
@@ -354,7 +354,7 @@ IMPL_LINK( SvxHatchTabPage, ModifiedSliderHdl_Impl, Slider*, rSlider, void )
     ModifiedHdl_Impl(rSlider);
     m_pHatchLB->SetNoSelection();
 }
-void SvxHatchTabPage::ModifiedHdl_Impl( void* p )
+void SvxHatchTabPage::ModifiedHdl_Impl( void const * p )
 {
     if( p == m_pMtrAngle )
         m_pSliderAngle->SetThumbPos( m_pMtrAngle->GetValue() );
diff --git a/cui/source/tabpages/tpline.cxx b/cui/source/tabpages/tpline.cxx
index 8e1293bd3007..01a0417e50d7 100644
--- a/cui/source/tabpages/tpline.cxx
+++ b/cui/source/tabpages/tpline.cxx
@@ -272,7 +272,7 @@ void SvxLineTabPage::Construct()
     FillListboxes();
 }
 
-void SvxLineTabPage::InitSymbols(MenuButton* pButton)
+void SvxLineTabPage::InitSymbols(MenuButton const * pButton)
 {
     // Initialize popup
     if(!pButton->GetPopupMenu()->GetPopupMenu( MN_GALLERY ))
@@ -421,7 +421,7 @@ void SvxLineTabPage::InitSymbols(MenuButton* pButton)
     }
 }
 
-void SvxLineTabPage::SymbolSelected(MenuButton* pButton)
+void SvxLineTabPage::SymbolSelected(MenuButton const * pButton)
 {
     sal_uInt16 nItemId = pButton->GetCurItemId();
     const Graphic* pGraphic = nullptr;
@@ -1491,7 +1491,7 @@ IMPL_LINK( SvxLineTabPage, ChangePreviewModifyHdl_Impl, Edit&, rEdit, void )
 {
     ChangePreviewHdl_Impl(&rEdit);
 }
-void SvxLineTabPage::ChangePreviewHdl_Impl(void * pCntrl )
+void SvxLineTabPage::ChangePreviewHdl_Impl(void const * pCntrl )
 {
     if(pCntrl == m_pMtrLineWidth)
     {
@@ -1563,7 +1563,7 @@ IMPL_LINK( SvxLineTabPage, ChangeStartModifyHdl_Impl, Edit&, rEdit, void )
 {
     ChangeStartHdl_Impl(&rEdit);
 }
-void SvxLineTabPage::ChangeStartHdl_Impl( void * p )
+void SvxLineTabPage::ChangeStartHdl_Impl( void const * p )
 {
     if( m_pCbxSynchronize->IsChecked() )
     {
@@ -1638,7 +1638,7 @@ IMPL_LINK( SvxLineTabPage, ChangeEndModifyHdl_Impl, Edit&, rEdit, void )
 {
     ChangeEndHdl_Impl(&rEdit);
 }
-void SvxLineTabPage::ChangeEndHdl_Impl( void * p )
+void SvxLineTabPage::ChangeEndHdl_Impl( void const * p )
 {
     if( m_pCbxSynchronize->IsChecked() )
     {
diff --git a/cui/source/tabpages/tplnedef.cxx b/cui/source/tabpages/tplnedef.cxx
index ab570642ef69..28984fa50ec7 100644
--- a/cui/source/tabpages/tplnedef.cxx
+++ b/cui/source/tabpages/tplnedef.cxx
@@ -353,7 +353,7 @@ IMPL_LINK( SvxLineDefTabPage, SelectLinestyleListBoxHdl_Impl, ListBox&, rListBox
     SelectLinestyleHdl_Impl(&rListBox);
 }
 
-void SvxLineDefTabPage::SelectLinestyleHdl_Impl(ListBox* p)
+void SvxLineDefTabPage::SelectLinestyleHdl_Impl(ListBox const * p)
 {
     if(pDashList->Count())
     {
diff --git a/cui/source/tabpages/tptrans.cxx b/cui/source/tabpages/tptrans.cxx
index fd1c5517ddfd..941f4f1901ce 100644
--- a/cui/source/tabpages/tptrans.cxx
+++ b/cui/source/tabpages/tptrans.cxx
@@ -148,7 +148,7 @@ IMPL_LINK(SvxTransparenceTabPage, ModifiedTrgrEditHdl_Impl, Edit&, rBox, void)
     ModifiedTrgrHdl_Impl(&rBox);
 }
 
-void SvxTransparenceTabPage::ModifiedTrgrHdl_Impl(void* pControl)
+void SvxTransparenceTabPage::ModifiedTrgrHdl_Impl(void const * pControl)
 {
     if(pControl == m_pLbTrgrGradientType || pControl == this)
     {


More information about the Libreoffice-commits mailing list