diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-07 12:15:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-07 13:09:50 +0200 |
commit | 06e2246f1683fc862f40155ea4d68800c0fcfd9e (patch) | |
tree | e3835cd3c1ba63592edb584ffbe17632a597e05a /sw/source/ui/chrdlg | |
parent | 43f159dafa3fe61c09cafc8467cdd67233a02401 (diff) |
loplugin:constparams in sw part9
Change-Id: I2edba9cde5a5efd06815a55632703b706ca523c7
Reviewed-on: https://gerrit.libreoffice.org/40830
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/chrdlg')
-rw-r--r-- | sw/source/ui/chrdlg/drpcps.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/chrdlg/swuiccoll.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/chrdlg/drpcps.cxx b/sw/source/ui/chrdlg/drpcps.cxx index 674519f8e747..9b9cc1254851 100644 --- a/sw/source/ui/chrdlg/drpcps.cxx +++ b/sw/source/ui/chrdlg/drpcps.cxx @@ -187,7 +187,7 @@ OUString GetDefaultString(sal_Int32 nChars) return aStr; } -static void calcFontHeightAnyAscent( vcl::RenderContext* _pWin, vcl::Font& _rFont, long& _nHeight, long& _nAscent ) +static void calcFontHeightAnyAscent( vcl::RenderContext* _pWin, vcl::Font const & _rFont, long& _nHeight, long& _nAscent ) { if ( !_nHeight ) { diff --git a/sw/source/ui/chrdlg/swuiccoll.cxx b/sw/source/ui/chrdlg/swuiccoll.cxx index 23a1f231211d..0156e6017e93 100644 --- a/sw/source/ui/chrdlg/swuiccoll.cxx +++ b/sw/source/ui/chrdlg/swuiccoll.cxx @@ -238,7 +238,7 @@ IMPL_LINK( SwCondCollPage, AssignRemoveHdl, ListBox&, rBox, void) { AssignRemove(&rBox); } -void SwCondCollPage::AssignRemove(void* pBtn) +void SwCondCollPage::AssignRemove(void const * pBtn) { SvTreeListEntry* pE = m_pTbLinks->FirstSelected(); if (!pE) @@ -276,12 +276,12 @@ IMPL_LINK( SwCondCollPage, SelectListBoxHdl, ListBox&, rBox, void) { SelectHdl(&rBox); } -void SwCondCollPage::SelectHdl(void* pBox) +void SwCondCollPage::SelectHdl(void const * pBox) { if (pBox == m_pFilterLB) { m_pStyleLB->Clear(); - const sal_Int32 nSelPos = static_cast<ListBox*>(pBox)->GetSelectEntryPos(); + const sal_Int32 nSelPos = static_cast<ListBox const *>(pBox)->GetSelectEntryPos(); const sal_uInt16 nSearchFlags = *static_cast<sal_uInt16*>(m_pFilterLB->GetEntryData(nSelPos)); SfxStyleSheetBasePool* pPool = m_rSh.GetView().GetDocShell()->GetStyleSheetPool(); pPool->SetSearchMask(SfxStyleFamily::Para, nSearchFlags); |