loplugin:constparams in various(2)

Change-Id: I533a7eb724b15e168a28dc92cd5962a39bc96e7c
Reviewed-on: https://gerrit.libreoffice.org/44313
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/cui/source/inc/swpossizetabpage.hxx b/cui/source/inc/swpossizetabpage.hxx
index 2c2168d..cbcb392 100644
--- a/cui/source/inc/swpossizetabpage.hxx
+++ b/cui/source/inc/swpossizetabpage.hxx
@@ -107,12 +107,12 @@ 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 const &rAlignLB);
    static short        GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBox const &rRelationLB);
    static sal_uInt16   GetMapPos(FrmMap const *pMap, ListBox const &rAlignLB);
    static short        GetAlignment(FrmMap const *pMap, sal_uInt16 nMapPos, ListBox const &rRelationLB);
    static short        GetRelation(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);
    void                FillRelLB(FrmMap const *pMap, sal_uInt16 nLBSelPos, sal_uInt16 nAlign, sal_uInt16 nRel, ListBox &rLB, FixedText &rFT);
    sal_uInt16          FillPosLB(FrmMap const *pMap, sal_uInt16 nAlign, const sal_uInt16 _nRel, ListBox &rLB);

    void            UpdateExample();

diff --git a/cui/source/tabpages/swpossizetabpage.cxx b/cui/source/tabpages/swpossizetabpage.cxx
index 15948bc..44e7ca6 100644
--- a/cui/source/tabpages/swpossizetabpage.cxx
+++ b/cui/source/tabpages/swpossizetabpage.cxx
@@ -1410,7 +1410,7 @@ short SvxSwPosSizeTabPage::GetRelation(ListBox const &rRelationLB)
    return nRel;
}

short SvxSwPosSizeTabPage::GetAlignment(FrmMap *pMap, sal_uInt16 nMapPos, ListBox const &rRelationLB)
short SvxSwPosSizeTabPage::GetAlignment(FrmMap const *pMap, sal_uInt16 nMapPos, 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 const &rAlignLB)
sal_uInt16 SvxSwPosSizeTabPage::GetMapPos(FrmMap const *pMap, ListBox const &rAlignLB)
{
    sal_uInt16 nMapPos = 0;
    sal_Int32 nLBSelPos = rAlignLB.GetSelectedEntryPos();
@@ -1659,7 +1659,7 @@ void SvxSwPosSizeTabPage::UpdateExample()
    m_pExampleWN->Invalidate();
}

void SvxSwPosSizeTabPage::FillRelLB(FrmMap *pMap, sal_uInt16 nMapPos, sal_uInt16 nAlign,
void SvxSwPosSizeTabPage::FillRelLB(FrmMap const *pMap, sal_uInt16 nMapPos, sal_uInt16 nAlign,
        sal_uInt16 nRel, ListBox &rLB, FixedText &rFT)
{
    OUString sSelEntry;
@@ -1800,7 +1800,7 @@ void SvxSwPosSizeTabPage::FillRelLB(FrmMap *pMap, sal_uInt16 nMapPos, sal_uInt16
    RelHdl(rLB);
}

sal_uInt16 SvxSwPosSizeTabPage::FillPosLB(FrmMap *_pMap,
sal_uInt16 SvxSwPosSizeTabPage::FillPosLB(FrmMap const *_pMap,
                                      sal_uInt16 _nAlign,
                                      const sal_uInt16 _nRel,
                                      ListBox &_rLB)
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
index 229b8a2..1dcff3d 100644
--- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
@@ -1064,7 +1064,7 @@ bool UpdateDialog::isIgnoredUpdate( UpdateDialog::Index * index )
}


void UpdateDialog::setIgnoredUpdate( UpdateDialog::Index *pIndex, bool bIgnore, bool bIgnoreAll )
void UpdateDialog::setIgnoredUpdate( UpdateDialog::Index const *pIndex, bool bIgnore, bool bIgnoreAll )
{
    OUString aExtensionID;
    OUString aVersion;
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.hxx b/desktop/source/deployment/gui/dp_gui_updatedialog.hxx
index 1c5c1e7..5e83051 100644
--- a/desktop/source/deployment/gui/dp_gui_updatedialog.hxx
+++ b/desktop/source/deployment/gui/dp_gui_updatedialog.hxx
@@ -136,7 +136,7 @@ private:
    sal_uInt16 insertItem( UpdateDialog::Index *pIndex, SvLBoxButtonKind kind );
    void addAdditional( UpdateDialog::Index *pIndex, SvLBoxButtonKind kind );
    bool isIgnoredUpdate( UpdateDialog::Index *pIndex );
    void setIgnoredUpdate( UpdateDialog::Index *pIndex, bool bIgnore, bool bIgnoreAll );
    void setIgnoredUpdate( UpdateDialog::Index const *pIndex, bool bIgnore, bool bIgnoreAll );

    void addEnabledUpdate( OUString const & name, dp_gui::UpdateData const & data );
    void addDisabledUpdate( UpdateDialog::DisabledUpdate const & data );
diff --git a/emfio/inc/mtftools.hxx b/emfio/inc/mtftools.hxx
index cc7361a..dcc227a 100644
--- a/emfio/inc/mtftools.hxx
+++ b/emfio/inc/mtftools.hxx
@@ -320,7 +320,7 @@ namespace emfio
    {
        vcl::Font    aFont;

        explicit WinMtfFontStyle(LOGFONTW& rLogFont);
        explicit WinMtfFontStyle(LOGFONTW const & rLogFont);
    };

    enum class WinMtfFillStyleType
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx
index 6e104c9..8912327 100644
--- a/emfio/source/reader/mtftools.cxx
+++ b/emfio/source/reader/mtftools.cxx
@@ -180,7 +180,7 @@ namespace emfio

    }

    WinMtfFontStyle::WinMtfFontStyle( LOGFONTW& rFont )
    WinMtfFontStyle::WinMtfFontStyle( LOGFONTW const & rFont )
    {
        rtl_TextEncoding eCharSet;
        if ((rFont.alfFaceName == "Symbol")
diff --git a/extensions/source/propctrlr/propertyeditor.cxx b/extensions/source/propctrlr/propertyeditor.cxx
index 02e69a6..4f8c355 100644
--- a/extensions/source/propctrlr/propertyeditor.cxx
+++ b/extensions/source/propctrlr/propertyeditor.cxx
@@ -187,13 +187,13 @@ namespace pcr
    }


    OBrowserPage* OPropertyEditor::getPage( sal_uInt16& _rPageId )
    OBrowserPage* OPropertyEditor::getPage( sal_uInt16 _rPageId )
    {
        return static_cast< OBrowserPage* >( m_aTabControl->GetTabPage( _rPageId ) );
    }


    const OBrowserPage* OPropertyEditor::getPage( sal_uInt16& _rPageId ) const
    const OBrowserPage* OPropertyEditor::getPage( sal_uInt16 _rPageId ) const
    {
        return const_cast< OPropertyEditor* >( this )->getPage( _rPageId );
    }
diff --git a/extensions/source/propctrlr/propertyeditor.hxx b/extensions/source/propctrlr/propertyeditor.hxx
index 0c7adb0..8b49ea9 100644
--- a/extensions/source/propctrlr/propertyeditor.hxx
+++ b/extensions/source/propctrlr/propertyeditor.hxx
@@ -114,8 +114,8 @@ namespace pcr
        using Window::SetHelpText;
        using Window::Update;

        OBrowserPage* getPage( sal_uInt16& _rPageId );
        const OBrowserPage* getPage( sal_uInt16& _rPageId ) const;
        OBrowserPage* getPage( sal_uInt16 _rPageId );
        const OBrowserPage* getPage( sal_uInt16 _rPageId ) const;

        OBrowserPage* getPage( const OUString& _rPropertyName );
        const OBrowserPage* getPage( const OUString& _rPropertyName ) const;
diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx
index b9699cc2..ba5f9da 100644
--- a/fpicker/source/office/iodlgimp.cxx
+++ b/fpicker/source/office/iodlgimp.cxx
@@ -236,7 +236,7 @@ namespace {
    }
}

void SvtExpFileDlg_Impl::SetCurFilter( SvtFileDialogFilter_Impl* pFilter, const OUString& rDisplayName )
void SvtExpFileDlg_Impl::SetCurFilter( SvtFileDialogFilter_Impl const * pFilter, const OUString& rDisplayName )
{
    DBG_ASSERT( pFilter, "SvtExpFileDlg_Impl::SetCurFilter: invalid filter!" );
    DBG_ASSERT( ( rDisplayName == pFilter->GetName() )
diff --git a/fpicker/source/office/iodlgimp.hxx b/fpicker/source/office/iodlgimp.hxx
index 95fdce1..c0d6a55 100644
--- a/fpicker/source/office/iodlgimp.hxx
+++ b/fpicker/source/office/iodlgimp.hxx
@@ -202,7 +202,7 @@ public:
    // access to the current filter via methods only - need to care for consistency between _pCurFilter and m_sCurrentFilterDisplayName
    inline      const SvtFileDialogFilter_Impl*     GetCurFilter( ) const;
    inline      const OUString&                     GetCurFilterDisplayName() const;
                void                                SetCurFilter( SvtFileDialogFilter_Impl* _pFilter, const OUString& _rDisplayName );
                void                                SetCurFilter( SvtFileDialogFilter_Impl const * _pFilter, const OUString& _rDisplayName );
};

inline void SvtExpFileDlg_Impl::SetFilterListSelectHdl( const Link<ListBox&,void>& _rHandler )
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx
index c18fad6..d1005e4 100644
--- a/hwpfilter/source/hwpreader.cxx
+++ b/hwpfilter/source/hwpreader.cxx
@@ -1331,7 +1331,7 @@ void HwpReader::makeMasterStyles()
 *    style:text-underline,style:text-outline,fo:text-shadow,style:text-position
 *    Support them.
 */
void HwpReader::parseCharShape(CharShape * cshape)
void HwpReader::parseCharShape(CharShape const * cshape)
{
    HWPFont& hwpfont = hwpfile.GetHWPFont();

@@ -1405,7 +1405,7 @@ void HwpReader::parseCharShape(CharShape * cshape)
 *    are implemented.
 * TODO: Tab Settings => set values of properties only which doesn't have the default value
 */
void HwpReader::parseParaShape(ParaShape * pshape)
void HwpReader::parseParaShape(ParaShape const * pshape)
{

    if (pshape->left_margin != 0)
@@ -1473,7 +1473,7 @@ void HwpReader::parseParaShape(ParaShape * pshape)
/**
 * Make the style of the Paragraph.
 */
void HwpReader::makePStyle(ParaShape * pshape)
void HwpReader::makePStyle(ParaShape const * pshape)
{
    int nscount = pshape->tabs[MAXTABS -1].type;
    padd("style:name", sXML_CDATA,
@@ -1804,7 +1804,7 @@ void HwpReader::makePageStyle()
     }
}

void HwpReader::makeColumns(ColumnDef *coldef)
void HwpReader::makeColumns(ColumnDef const *coldef)
{
    if( !coldef ) return;
  padd("fo:column-count", sXML_CDATA, ascii(Int2Str(coldef->ncols, "%d", buf)));
@@ -1854,7 +1854,7 @@ void HwpReader::makeColumns(ColumnDef *coldef)
  rendEl("style:columns");
}

void HwpReader::makeTStyle(CharShape * cshape)
void HwpReader::makeTStyle(CharShape const * cshape)
{
    padd("style:name", sXML_CDATA,
        ascii(Int2Str(cshape->index, "T%d", buf)));
@@ -4666,7 +4666,7 @@ void HwpReader::makeFootnote(Footnote * hbox)
/**
 * page/footnote/endnote/picture/table/formula number
 */
void HwpReader::makeAutoNum(AutoNum * hbox)
void HwpReader::makeAutoNum(AutoNum const * hbox)
{
    switch (hbox->type)
    {
diff --git a/hwpfilter/source/hwpreader.hxx b/hwpfilter/source/hwpreader.hxx
index 8acc308..c23316d 100644
--- a/hwpfilter/source/hwpreader.hxx
+++ b/hwpfilter/source/hwpreader.hxx
@@ -130,22 +130,22 @@ private:
    void makeLine();
    void makeHidden(Hidden *hbox);
    void makeFootnote(Footnote *hbox);
    void makeAutoNum(AutoNum *hbox);
    void makeAutoNum(AutoNum const *hbox);
    void makeShowPageNum();
    void makeMailMerge(MailMerge *hbox);
    void makeOutline(Outline const *hbox);

    /* --------- Styles Parsing ------------ */
    void makePageStyle();
    void makeColumns(ColumnDef *);
    void makeTStyle(CharShape *);
    void makePStyle(ParaShape *);
    void makeColumns(ColumnDef const *);
    void makeTStyle(CharShape const *);
    void makePStyle(ParaShape const *);
    void makeFStyle(FBoxStyle *);
    void makeCaptionStyle(FBoxStyle *);
    void makeDrawStyle(HWPDrawingObject *,FBoxStyle *);
    void makeTableStyle(Table *);
    void parseCharShape(CharShape *);
    void parseParaShape(ParaShape *);
    void parseCharShape(CharShape const *);
    void parseParaShape(ParaShape const *);
    static char* getTStyleName(int, char *);
    static char* getPStyleName(int, char *);
};
diff --git a/i18npool/inc/indexentrysupplier_default.hxx b/i18npool/inc/indexentrysupplier_default.hxx
index 6a0514d..2c7925f 100644
--- a/i18npool/inc/indexentrysupplier_default.hxx
+++ b/i18npool/inc/indexentrysupplier_default.hxx
@@ -66,7 +66,7 @@ public:
    IndexTable();
    ~IndexTable();

    void init(sal_Unicode start_, sal_Unicode end_, IndexKey* keys, sal_Int16 key_count, Index *index);
    void init(sal_Unicode start_, sal_Unicode end_, IndexKey const * keys, sal_Int16 key_count, Index *index);

    sal_Unicode start;
    sal_Unicode end;
diff --git a/i18npool/source/indexentry/indexentrysupplier_default.cxx b/i18npool/source/indexentry/indexentrysupplier_default.cxx
index cc5db18..bcd7b2a 100644
--- a/i18npool/source/indexentry/indexentrysupplier_default.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_default.cxx
@@ -89,7 +89,7 @@ IndexTable::~IndexTable()
    if (table) free(table);
}

void IndexTable::init(sal_Unicode start_, sal_Unicode end_, IndexKey *keys, sal_Int16 key_count, Index *index)
void IndexTable::init(sal_Unicode start_, sal_Unicode end_, IndexKey const *keys, sal_Int16 key_count, Index *index)
{
    start=start_;
    end=end_;
diff --git a/include/test/htmltesttools.hxx b/include/test/htmltesttools.hxx
index 490adee..e7bb853 100644
--- a/include/test/htmltesttools.hxx
+++ b/include/test/htmltesttools.hxx
@@ -21,7 +21,7 @@
class OOO_DLLPUBLIC_TEST HtmlTestTools
{
protected:
    static htmlDocPtr parseHtml(utl::TempFile& aTempFile);
    static htmlDocPtr parseHtml(utl::TempFile const & aTempFile);
    static htmlDocPtr parseHtmlStream(SvStream* pStream);
};

diff --git a/include/test/xmltesttools.hxx b/include/test/xmltesttools.hxx
index 80f95b3..bfcaf91 100644
--- a/include/test/xmltesttools.hxx
+++ b/include/test/xmltesttools.hxx
@@ -37,7 +37,7 @@ protected:
    XmlTestTools();
    virtual ~XmlTestTools();

    static xmlDocPtr parseXml(utl::TempFile& aTempFile);
    static xmlDocPtr parseXml(utl::TempFile const & aTempFile);

    virtual void registerNamespaces(xmlXPathContextPtr& pXmlXpathCtx);

diff --git a/lotuswordpro/inc/lwpdocdata.hxx b/lotuswordpro/inc/lwpdocdata.hxx
index 68abe84..68df195 100644
--- a/lotuswordpro/inc/lwpdocdata.hxx
+++ b/lotuswordpro/inc/lwpdocdata.hxx
@@ -168,8 +168,8 @@ private:
    LtTm m_nLastRevisionTime;
    LtTm m_nTotalEditTime;
private:
    static OUString DateTimeToOUString(LtTm& dt);
    static OUString TimeToOUString(LtTm& dt);
    static OUString DateTimeToOUString(LtTm const & dt);
    static OUString TimeToOUString(LtTm const & dt);

public:
    void Read() override;
diff --git a/lotuswordpro/inc/xfilter/xfbgimage.hxx b/lotuswordpro/inc/xfilter/xfbgimage.hxx
index 8f2e752..8940cfe 100644
--- a/lotuswordpro/inc/xfilter/xfbgimage.hxx
+++ b/lotuswordpro/inc/xfilter/xfbgimage.hxx
@@ -80,7 +80,7 @@ public:
    /**
     * @descr   Use base64 stream as image source.
     */
    void    SetImageData(sal_uInt8 *buf, int len);
    void    SetImageData(sal_uInt8 const *buf, int len);

    /**
     * @descr   Set the iamge position type.
diff --git a/lotuswordpro/inc/xfilter/xfimage.hxx b/lotuswordpro/inc/xfilter/xfimage.hxx
index 019e509..92410a6 100644
--- a/lotuswordpro/inc/xfilter/xfimage.hxx
+++ b/lotuswordpro/inc/xfilter/xfimage.hxx
@@ -81,7 +81,7 @@ public:
    /**
     * @descr   Use base64 stream.
     */
    void    SetImageData(sal_uInt8 *buf, int len);
    void    SetImageData(sal_uInt8 const *buf, int len);

    /**
     * @descr   Output image.
diff --git a/lotuswordpro/source/filter/lwpdocdata.cxx b/lotuswordpro/source/filter/lwpdocdata.cxx
index 6fdd64c..55d43f0 100644
--- a/lotuswordpro/source/filter/lwpdocdata.cxx
+++ b/lotuswordpro/source/filter/lwpdocdata.cxx
@@ -293,14 +293,14 @@ void LwpDocData::Read()
        pGlobal->SetEditorAttrMap(nID, xEditorAttr.release());
    }
}
OUString   LwpDocData::DateTimeToOUString(LtTm& dt)
OUString   LwpDocData::DateTimeToOUString(LtTm const & dt)
{
    OUString aResult = OUString::number(dt.tm_year) + "-" + OUString::number(dt.tm_mon) + "-" + OUString::number(dt.tm_mday) +
        "T" + OUString::number(dt.tm_hour) + ":" + OUString::number(dt.tm_min) + ":" + OUString::number(dt.tm_sec) + ".0";

    return aResult;
}
OUString   LwpDocData::TimeToOUString(LtTm& dt)
OUString   LwpDocData::TimeToOUString(LtTm const & dt)
{
    //PT3H43M44S
    OUString aResult = "PT" + OUString::number(dt.tm_hour) + "H" + OUString::number(dt.tm_min) + "M" + OUString::number(dt.tm_sec) + "S";
diff --git a/lotuswordpro/source/filter/lwpdrawobj.cxx b/lotuswordpro/source/filter/lwpdrawobj.cxx
index e10a5e9..fe974a1 100644
--- a/lotuswordpro/source/filter/lwpdrawobj.cxx
+++ b/lotuswordpro/source/filter/lwpdrawobj.cxx
@@ -978,7 +978,7 @@ LwpDrawTextBox::~LwpDrawTextBox()
    }
}

void LwpDrawTextBox::SetFontStyle(rtl::Reference<XFFont> const & pFont, SdwTextBoxRecord* pRec)
void LwpDrawTextBox::SetFontStyle(rtl::Reference<XFFont> const & pFont, SdwTextBoxRecord const * pRec)
{
    // color
    XFColor aXFColor(pRec->aTextColor.nR, pRec->aTextColor.nG,
diff --git a/lotuswordpro/source/filter/lwpdrawobj.hxx b/lotuswordpro/source/filter/lwpdrawobj.hxx
index 8c41bec..61d2c09 100644
--- a/lotuswordpro/source/filter/lwpdrawobj.hxx
+++ b/lotuswordpro/source/filter/lwpdrawobj.hxx
@@ -296,7 +296,7 @@ private:
public:
    explicit LwpDrawTextBox(SvStream* pStream);
    virtual ~LwpDrawTextBox() override;
    static void SetFontStyle(rtl::Reference<XFFont> const & pFont, SdwTextBoxRecord* pRec);
    static void SetFontStyle(rtl::Reference<XFFont> const & pFont, SdwTextBoxRecord const * pRec);

protected:
    virtual void Read() override;
diff --git a/lotuswordpro/source/filter/ut.hxx b/lotuswordpro/source/filter/ut.hxx
index 92ef8d3..c499e9c 100644
--- a/lotuswordpro/source/filter/ut.hxx
+++ b/lotuswordpro/source/filter/ut.hxx
@@ -66,7 +66,7 @@ inline sal_uInt16 UtGetIntelWord(sal_uInt8 const * pData)
inline sal_uInt32 UtGetIntelDWord(sal_uInt8 const * pData)
{ return pData[0] | pData[1] << 8 | pData[2] << 16 | pData[3] << 24; }

inline sal_uInt8 UtGetIntelByte(sal_uInt8 * pData)
inline sal_uInt8 UtGetIntelByte(sal_uInt8 const * pData)
{ return * pData; }

}
diff --git a/lotuswordpro/source/filter/xfilter/xfbase64.cxx b/lotuswordpro/source/filter/xfilter/xfbase64.cxx
index 257fe63..9e3787f 100644
--- a/lotuswordpro/source/filter/xfilter/xfbase64.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfbase64.cxx
@@ -93,7 +93,7 @@ inline void Encode_(const sal_uInt8 *src, sal_Char* dest)
/**
 * @descr   Base64 encode.
 */
OUString XFBase64::Encode(sal_uInt8 *buf, sal_Int32 len)
OUString XFBase64::Encode(sal_uInt8 const *buf, sal_Int32 len)
{
    sal_Char    *buffer;
    sal_Int32   nNeeded;
diff --git a/lotuswordpro/source/filter/xfilter/xfbase64.hxx b/lotuswordpro/source/filter/xfilter/xfbase64.hxx
index 8101a20..234649d 100644
--- a/lotuswordpro/source/filter/xfilter/xfbase64.hxx
+++ b/lotuswordpro/source/filter/xfilter/xfbase64.hxx
@@ -75,7 +75,7 @@ public:
    /**
     * @descr   Encode binary buffer to base64 encoding.
     */
    static OUString    Encode(sal_uInt8 *buf, sal_Int32 len);
    static OUString    Encode(sal_uInt8 const *buf, sal_Int32 len);
};

#endif
diff --git a/lotuswordpro/source/filter/xfilter/xfbgimage.cxx b/lotuswordpro/source/filter/xfilter/xfbgimage.cxx
index d5c7079..700fcfe 100644
--- a/lotuswordpro/source/filter/xfilter/xfbgimage.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfbgimage.cxx
@@ -69,7 +69,7 @@ XFBGImage::XFBGImage()
    , m_eVertAlign(enumXFAlignCenter)
{}

void XFBGImage::SetImageData(sal_uInt8 *buf, int len)
void XFBGImage::SetImageData(sal_uInt8 const *buf, int len)
{
    m_strData = XFBase64::Encode(buf,len);
    m_bUserFileLink = false;
diff --git a/lotuswordpro/source/filter/xfilter/xfimage.cxx b/lotuswordpro/source/filter/xfilter/xfimage.cxx
index b03bb1b..7f24974 100644
--- a/lotuswordpro/source/filter/xfilter/xfimage.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfimage.cxx
@@ -72,7 +72,7 @@ void XFImage::SetFileURL(const OUString& url)
    m_bUseLink  = true;
}

void XFImage::SetImageData(sal_uInt8 *buf, int len)
void XFImage::SetImageData(sal_uInt8 const *buf, int len)
{
    m_strData = XFBase64::Encode(buf, len);
    m_bUseLink = false;
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index 6681920..88becc3 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -2040,7 +2040,7 @@ void implWriteStringWithEncoding( const OUString& aStr,
    xTextOutputStream->writeString( aWriteStr );
}

bool StringResourcePersistenceImpl::implWritePropertiesFile( LocaleItem* pLocaleItem,
bool StringResourcePersistenceImpl::implWritePropertiesFile( LocaleItem const * pLocaleItem,
    const Reference< io::XOutputStream >& xOutputStream, const OUString& aComment )
{
    if( !xOutputStream.is() || pLocaleItem == nullptr )
diff --git a/scripting/source/stringresource/stringresource.hxx b/scripting/source/stringresource/stringresource.hxx
index 860c455..12a7310 100644
--- a/scripting/source/stringresource/stringresource.hxx
+++ b/scripting/source/stringresource/stringresource.hxx
@@ -228,7 +228,7 @@ protected:
    bool implReadPropertiesFile( LocaleItem* pLocaleItem,
        const css::uno::Reference< css::io::XInputStream >& xInput );

    bool implWritePropertiesFile( LocaleItem* pLocaleItem,
    bool implWritePropertiesFile( LocaleItem const * pLocaleItem,
              const css::uno::Reference< css::io::XOutputStream >& xOutputStream,
              const OUString& aComment );

diff --git a/sdext/source/pdfimport/inc/pdfparse.hxx b/sdext/source/pdfimport/inc/pdfparse.hxx
index b38c8ca..462cf46 100644
--- a/sdext/source/pdfimport/inc/pdfparse.hxx
+++ b/sdext/source/pdfimport/inc/pdfparse.hxx
@@ -167,7 +167,7 @@ struct PDFContainer : public PDFEntry
    void cloneSubElements( std::vector<PDFEntry*>& rNewSubElements ) const;

    PDFObject* findObject( unsigned int nNumber, unsigned int nGeneration ) const;
    PDFObject* findObject( PDFObjectRef* pRef ) const
    PDFObject* findObject( PDFObjectRef const * pRef ) const
    { return findObject( pRef->m_nNumber, pRef->m_nGeneration ); }
};

diff --git a/test/source/htmltesttools.cxx b/test/source/htmltesttools.cxx
index 4f28b15..cf4c25c 100644
--- a/test/source/htmltesttools.cxx
+++ b/test/source/htmltesttools.cxx
@@ -11,7 +11,7 @@

#include <memory>

htmlDocPtr HtmlTestTools::parseHtml(utl::TempFile& aTempFile)
htmlDocPtr HtmlTestTools::parseHtml(utl::TempFile const & aTempFile)
{
    SvFileStream aFileStream(aTempFile.GetURL(), StreamMode::READ);
    htmlDocPtr doc = parseHtmlStream(&aFileStream);
diff --git a/test/source/xmltesttools.cxx b/test/source/xmltesttools.cxx
index 659af49..bcdf93e 100644
--- a/test/source/xmltesttools.cxx
+++ b/test/source/xmltesttools.cxx
@@ -34,7 +34,7 @@ XmlTestTools::XmlTestTools()
XmlTestTools::~XmlTestTools()
{}

xmlDocPtr XmlTestTools::parseXml(utl::TempFile& aTempFile)
xmlDocPtr XmlTestTools::parseXml(utl::TempFile const & aTempFile)
{
    SvFileStream aFileStream(aTempFile.GetURL(), StreamMode::READ);
    return parseXmlStream(&aFileStream);
diff --git a/vcl/inc/opengl/x11/salvd.hxx b/vcl/inc/opengl/x11/salvd.hxx
index bf28e6c..94aa6b2 100644
--- a/vcl/inc/opengl/x11/salvd.hxx
+++ b/vcl/inc/opengl/x11/salvd.hxx
@@ -33,7 +33,7 @@ class X11OpenGLSalVirtualDevice : public SalVirtualDevice

public:
    X11OpenGLSalVirtualDevice( SalGraphics const *pGraphics,
                               long &nDX, long &nDY,
                               long nDX, long nDY,
                               const SystemGraphicsData *pData,
                               X11SalGraphics* pNewGraphics);
    virtual ~X11OpenGLSalVirtualDevice() override;
diff --git a/vcl/inc/unx/i18n_ic.hxx b/vcl/inc/unx/i18n_ic.hxx
index 6a36f48..2da9e8b 100644
--- a/vcl/inc/unx/i18n_ic.hxx
+++ b/vcl/inc/unx/i18n_ic.hxx
@@ -66,7 +66,7 @@ public:
    void HandleDestroyIM();

    void EndExtTextInput();
    void CommitKeyEvent( sal_Unicode* pText, std::size_t nLength );
    void CommitKeyEvent( sal_Unicode const * pText, std::size_t nLength );
    int  UpdateSpotLocation();

    void Map( SalFrame *pFrame );
diff --git a/vcl/inc/unx/salframe.h b/vcl/inc/unx/salframe.h
index 5adb54b..0bcb797 100644
--- a/vcl/inc/unx/salframe.h
+++ b/vcl/inc/unx/salframe.h
@@ -149,9 +149,9 @@ class VCLPLUG_GEN_PUBLIC X11SalFrame : public SalFrame, public NativeWindowHandl
    bool            HandleKeyEvent      ( XKeyEvent         *pEvent );
    bool            HandleMouseEvent    ( XEvent            *pEvent );
    bool            HandleFocusEvent    ( XFocusChangeEvent const *pEvent );
    bool            HandleExposeEvent   ( XEvent            *pEvent );
    bool            HandleExposeEvent   ( XEvent const      *pEvent );
    bool            HandleSizeEvent     ( XConfigureEvent   *pEvent );
    bool            HandleStateEvent    ( XPropertyEvent    *pEvent );
    bool            HandleStateEvent    ( XPropertyEvent const *pEvent );
    bool            HandleReparentEvent ( XReparentEvent    *pEvent );
    bool            HandleClientMessage ( XClientMessageEvent*pEvent );

@@ -165,12 +165,12 @@ class VCLPLUG_GEN_PUBLIC X11SalFrame : public SalFrame, public NativeWindowHandl

    void            updateWMClass();
public:
    X11SalFrame( SalFrame* pParent, SalFrameStyleFlags nSalFrameStyle, SystemParentData* pSystemParent = nullptr );
    X11SalFrame( SalFrame* pParent, SalFrameStyleFlags nSalFrameStyle, SystemParentData const * pSystemParent = nullptr );
    virtual ~X11SalFrame() override;

    bool            Dispatch( XEvent *pEvent );
    void            Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nScreen,
                          SystemParentData* pParentData, bool bUseGeometry = false );
                          SystemParentData const * pParentData, bool bUseGeometry = false );

    SalDisplay* GetDisplay() const
    {
@@ -191,7 +191,7 @@ public:
    Cursor                  GetCursor() const { return hCursor_; }
    bool                    IsCaptured() const { return nCaptured_ == 1; }
#if !defined(__synchronous_extinput__)
    void                    HandleExtTextEvent (XClientMessageEvent *pEvent);
    void                    HandleExtTextEvent (XClientMessageEvent const *pEvent);
#endif
    bool                    IsOverrideRedirect() const;
    bool                    IsChildWindow() const { return bool(nStyle_ & (SalFrameStyleFlags::PLUG|SalFrameStyleFlags::SYSTEMCHILD)); }
diff --git a/vcl/opengl/x11/salvd.cxx b/vcl/opengl/x11/salvd.cxx
index 32d0076..9af9f02 100644
--- a/vcl/opengl/x11/salvd.cxx
+++ b/vcl/opengl/x11/salvd.cxx
@@ -33,7 +33,7 @@ void X11SalGraphics::Init( X11OpenGLSalVirtualDevice *pDevice )
}

X11OpenGLSalVirtualDevice::X11OpenGLSalVirtualDevice( SalGraphics const * pGraphics,
                                                      long &nDX, long &nDY,
                                                      long nDX, long nDY,
                                                      const SystemGraphicsData *pData,
                                                      X11SalGraphics* pNewGraphics) :
    mpGraphics(pNewGraphics),
diff --git a/vcl/unx/generic/app/i18n_ic.cxx b/vcl/unx/generic/app/i18n_ic.cxx
index 408a828..f2245e5 100644
--- a/vcl/unx/generic/app/i18n_ic.cxx
+++ b/vcl/unx/generic/app/i18n_ic.cxx
@@ -512,7 +512,7 @@ SalI18N_InputContext::SupportInputMethodStyle( XIMStyles const *pIMStyles )
// handle extended and normal key input

void
SalI18N_InputContext::CommitKeyEvent(sal_Unicode* pText, std::size_t nLength)
SalI18N_InputContext::CommitKeyEvent(sal_Unicode const * pText, std::size_t nLength)
{
    if (nLength == 1 && IsControlCode(pText[0]))
        return;
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index fafb46b..dd0b57c 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -771,7 +771,7 @@ OUString SalDisplay::GetKeyNameFromKeySym( KeySym nKeySym ) const
}

inline KeySym sal_XModifier2Keysym( Display         *pDisplay,
                                    XModifierKeymap *pXModMap,
                                    XModifierKeymap const *pXModMap,
                                    int              n )
{
    return XkbKeycodeToKeysym( pDisplay,
diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx
index 67eb8c4..90e6200 100644
--- a/vcl/unx/generic/dtrans/X11_selection.cxx
+++ b/vcl/unx/generic/dtrans/X11_selection.cxx
@@ -1760,7 +1760,7 @@ bool SelectionManager::handleSelectionRequest( XSelectionRequestEvent& rRequest 
    return true;
}

bool SelectionManager::handleReceivePropertyNotify( XPropertyEvent& rNotify )
bool SelectionManager::handleReceivePropertyNotify( XPropertyEvent const & rNotify )
{
    osl::MutexGuard aGuard( m_aMutex );
    // data we requested arrived
@@ -1975,7 +1975,7 @@ bool SelectionManager::handleSendPropertyNotify( XPropertyEvent const & rNotify 
    return bHandled;
}

bool SelectionManager::handleSelectionNotify( XSelectionEvent& rNotify )
bool SelectionManager::handleSelectionNotify( XSelectionEvent const & rNotify )
{
    osl::MutexGuard aGuard( m_aMutex );

@@ -2493,7 +2493,7 @@ void SelectionManager::sendDropPosition( bool bForce, Time eventTime )
    }
}

bool SelectionManager::handleDragEvent( XEvent& rMessage )
bool SelectionManager::handleDragEvent( XEvent const & rMessage )
{
    if( ! m_xDragSourceListener.is() )
        return false;
diff --git a/vcl/unx/generic/dtrans/X11_selection.hxx b/vcl/unx/generic/dtrans/X11_selection.hxx
index 13d119b..40b81f41 100644
--- a/vcl/unx/generic/dtrans/X11_selection.hxx
+++ b/vcl/unx/generic/dtrans/X11_selection.hxx
@@ -370,9 +370,9 @@ namespace x11 {
        // handle various events
        bool handleSelectionRequest( XSelectionRequestEvent& rRequest );
        bool handleSendPropertyNotify( XPropertyEvent const & rNotify );
        bool handleReceivePropertyNotify( XPropertyEvent& rNotify );
        bool handleSelectionNotify( XSelectionEvent& rNotify );
        bool handleDragEvent( XEvent& rMessage );
        bool handleReceivePropertyNotify( XPropertyEvent const & rNotify );
        bool handleSelectionNotify( XSelectionEvent const & rNotify );
        bool handleDragEvent( XEvent const & rMessage );
        bool handleDropEvent( XClientMessageEvent const & rMessage );

        // dnd helpers
diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx
index c35c2d9..03fc70c 100644
--- a/vcl/unx/generic/window/salframe.cxx
+++ b/vcl/unx/generic/window/salframe.cxx
@@ -382,7 +382,7 @@ static bool lcl_SelectAppIconPixmap( SalDisplay const *pDisplay, SalX11Screen nX
    return true;
}

void X11SalFrame::Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nXScreen, SystemParentData* pParentData, bool bUseGeometry )
void X11SalFrame::Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nXScreen, SystemParentData const * pParentData, bool bUseGeometry )
{
    if( nXScreen.getXScreen() >= GetDisplay()->GetXScreenCount() )
        nXScreen = GetDisplay()->GetDefaultXScreen();
@@ -809,7 +809,7 @@ void X11SalFrame::Init( SalFrameStyleFlags nSalFrameStyle, SalX11Screen nXScreen
}

X11SalFrame::X11SalFrame( SalFrame *pParent, SalFrameStyleFlags nSalFrameStyle,
                          SystemParentData* pSystemParent ) :
                          SystemParentData const * pSystemParent ) :
    m_nXScreen( 0 )
{
    GenericUnixSalData *pData = GetGenericUnixSalData();
@@ -2278,7 +2278,7 @@ void X11SalFrame::SetPointerPos(long nX, long nY)
// delay handling of extended text input
#if !defined(__synchronous_extinput__)
void
X11SalFrame::HandleExtTextEvent (XClientMessageEvent *pEvent)
X11SalFrame::HandleExtTextEvent (XClientMessageEvent const *pEvent)
{
    #if SAL_TYPES_SIZEOFLONG > 4
    void* pExtTextEvent = reinterpret_cast<void*>(  (pEvent->data.l[0] & 0xffffffff)
@@ -3375,7 +3375,7 @@ bool X11SalFrame::HandleFocusEvent( XFocusChangeEvent const *pEvent )
    return false;
}

bool X11SalFrame::HandleExposeEvent( XEvent *pEvent )
bool X11SalFrame::HandleExposeEvent( XEvent const *pEvent )
{
    XRectangle  aRect = { 0, 0, 0, 0 };
    sal_uInt16  nCount = 0;
@@ -3780,7 +3780,7 @@ bool X11SalFrame::HandleReparentEvent( XReparentEvent *pEvent )
    return true;
}

bool X11SalFrame::HandleStateEvent( XPropertyEvent *pEvent )
bool X11SalFrame::HandleStateEvent( XPropertyEvent const *pEvent )
{
    Atom          actual_type;
    int           actual_format;
diff --git a/vcl/unx/gtk/a11y/atktext.cxx b/vcl/unx/gtk/a11y/atktext.cxx
index 202236b..5faac5e 100644
--- a/vcl/unx/gtk/a11y/atktext.cxx
+++ b/vcl/unx/gtk/a11y/atktext.cxx
@@ -58,7 +58,7 @@ text_type_from_boundary(AtkTextBoundary boundary_type)

static gchar *
adjust_boundaries( css::uno::Reference<css::accessibility::XAccessibleText> const & pText,
                   accessibility::TextSegment& rTextSegment,
                   accessibility::TextSegment const & rTextSegment,
                   AtkTextBoundary  boundary_type,
                   gint * start_offset, gint * end_offset )
{
diff --git a/vcl/unx/gtk/salnativewidgets-gtk.cxx b/vcl/unx/gtk/salnativewidgets-gtk.cxx
index 59fd376..5126034 100644
--- a/vcl/unx/gtk/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/salnativewidgets-gtk.cxx
@@ -247,7 +247,7 @@ static tools::Rectangle NWGetToolbarRect( SalX11Screen nScreen,
                                   ControlPart nPart,
                                   tools::Rectangle aAreaRect );

static int getFrameWidth(GtkWidget* widget);
static int getFrameWidth(GtkWidget const * widget);

static tools::Rectangle NWGetScrollButtonRect(    SalX11Screen nScreen, ControlPart nPart, tools::Rectangle aAreaRect );

@@ -3543,7 +3543,7 @@ bool GtkSalGraphics::NWPaintGTKSlider(
    return true;
}

static int getFrameWidth(GtkWidget* widget)
static int getFrameWidth(GtkWidget const * widget)
{
    return widget->style->xthickness;
}
diff --git a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
index 976adad..a6e6947 100644
--- a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
@@ -199,7 +199,7 @@ void lcl_computeCellBorders( const PropertyMapPtr& pTableBorders, const Property

#ifdef DEBUG_WRITERFILTER

void lcl_debug_BorderLine(table::BorderLine & rLine)
void lcl_debug_BorderLine(table::BorderLine const & rLine)
{
    TagLogger::getInstance().startElement("BorderLine");
    TagLogger::getInstance().attribute("Color", rLine.Color);
@@ -209,7 +209,7 @@ void lcl_debug_BorderLine(table::BorderLine & rLine)
    TagLogger::getInstance().endElement();
}

void lcl_debug_TableBorder(table::TableBorder & rBorder)
void lcl_debug_TableBorder(table::TableBorder const & rBorder)
{
    TagLogger::getInstance().startElement("TableBorder");
    lcl_debug_BorderLine(rBorder.TopLine);
diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx
index 9ae7d1df..5599699 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.cxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.cxx
@@ -71,7 +71,7 @@ StyleSheetEntry::~StyleSheetEntry()
{
}

TableStyleSheetEntry::TableStyleSheetEntry( StyleSheetEntry& rEntry ):
TableStyleSheetEntry::TableStyleSheetEntry( StyleSheetEntry const & rEntry ):
    StyleSheetEntry( )
{

diff --git a/writerfilter/source/dmapper/StyleSheetTable.hxx b/writerfilter/source/dmapper/StyleSheetTable.hxx
index e09dfa6..b9131c0 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.hxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.hxx
@@ -133,7 +133,7 @@ public:
    // @param mask      mask describing which properties to return
    PropertyMapPtr GetProperties( sal_Int32 nMask);

    TableStyleSheetEntry( StyleSheetEntry& aEntry );
    TableStyleSheetEntry( StyleSheetEntry const & aEntry );
    virtual ~TableStyleSheetEntry( ) override;

private:
diff --git a/writerfilter/source/rtftok/rtfsprm.cxx b/writerfilter/source/rtftok/rtfsprm.cxx
index 8ade6fe..1a4c1fd 100644
--- a/writerfilter/source/rtftok/rtfsprm.cxx
+++ b/writerfilter/source/rtftok/rtfsprm.cxx
@@ -193,7 +193,7 @@ static bool isSPRMChildrenExpected(Id nId)
}

/// Does the clone / deduplication of a single sprm.
static void cloneAndDeduplicateSprm(std::pair<Id, RTFValue::Pointer_t>& rSprm, RTFSprms& ret)
static void cloneAndDeduplicateSprm(std::pair<Id, RTFValue::Pointer_t> const & rSprm, RTFSprms& ret)
{
    RTFValue::Pointer_t const pValue(ret.find(rSprm.first));
    if (pValue)
diff --git a/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx
index 173a215..48ca392 100644
--- a/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx
@@ -358,7 +358,7 @@ OUString getAlgorithmDescription(SECAlgorithmID const *aid)
    return OUString::createFromAscii( pDesc ) ;
}

css::uno::Sequence< sal_Int8 > getThumbprint(CERTCertificate *pCert, SECOidTag id)
css::uno::Sequence< sal_Int8 > getThumbprint(CERTCertificate const *pCert, SECOidTag id)
{
    if( pCert != nullptr )
    {