diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-19 13:56:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-20 09:15:39 +0200 |
commit | 3b10ec87e383ce6ab14c0cede46ee98c13b11e61 (patch) | |
tree | c6bbdf92bc009b256c830a548bca1c4376034341 /accessibility | |
parent | 34e8f52d51cbf2010d1ea61c78757b38d8392f74 (diff) |
loplugin:constparams in accessibility
Change-Id: I9c168295dcd6d4400c0f7c0b30ec22bd018cf93b
Reviewed-on: https://gerrit.libreoffice.org/40203
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility')
6 files changed, 12 insertions, 12 deletions
diff --git a/accessibility/inc/extended/textwindowaccessibility.hxx b/accessibility/inc/extended/textwindowaccessibility.hxx index d30259c2a70d..b77173398a92 100644 --- a/accessibility/inc/extended/textwindowaccessibility.hxx +++ b/accessibility/inc/extended/textwindowaccessibility.hxx @@ -422,7 +422,7 @@ public: // within Paragraph's constructor (i.e., when the Paragraph's ref count is // still zero), pass a "Paragraph const &" instead of a // "::rtl::Reference< Paragraph > const &". - void changeParagraphText(Paragraph * pParagraph, + void changeParagraphText(Paragraph const * pParagraph, OUString const & rText); // Must be called only after init has been called. @@ -431,7 +431,7 @@ public: // still zero), pass a "Paragraph const &" instead of a // "::rtl::Reference< Paragraph > const &". // Throws css::lang::IndexOutOfBoundsException. - void changeParagraphText(Paragraph * pParagraph, ::sal_Int32 nBegin, + void changeParagraphText(Paragraph const * pParagraph, ::sal_Int32 nBegin, ::sal_Int32 nEnd, bool bCut, bool bPaste, OUString const & rText); @@ -451,7 +451,7 @@ public: // "::rtl::Reference< Paragraph > const &". // Throws css::lang::IndexOutOfBoundsException. void changeParagraphAttributes( - Paragraph * pParagraph, ::sal_Int32 nBegin, ::sal_Int32 nEnd, + Paragraph const * pParagraph, ::sal_Int32 nBegin, ::sal_Int32 nEnd, css::uno::Sequence< css::beans::PropertyValue > const & rAttributeSet); @@ -461,7 +461,7 @@ public: // still zero), pass a "Paragraph const &" instead of a // "::rtl::Reference< Paragraph > const &". // Throws css::lang::IndexOutOfBoundsException. - void changeParagraphSelection(Paragraph * pParagraph, + void changeParagraphSelection(Paragraph const * pParagraph, ::sal_Int32 nBegin, ::sal_Int32 nEnd); css::i18n::Boundary diff --git a/accessibility/inc/standard/vclxaccessiblelist.hxx b/accessibility/inc/standard/vclxaccessiblelist.hxx index 3d3533dcee1a..370ebc3e6be8 100644 --- a/accessibility/inc/standard/vclxaccessiblelist.hxx +++ b/accessibility/inc/standard/vclxaccessiblelist.hxx @@ -126,7 +126,7 @@ public: void UpdateSelection_Acc (const ::rtl::OUString& sTextOfSelectedItem, bool b_IsDropDownList); void UpdateSelection_Impl_Acc (bool b_IsDropDownList); - static void NotifyListItem(css::uno::Any& val); + static void NotifyListItem(css::uno::Any const & val); ::accessibility::IComboListBoxHelper* getListBoxHelper() { return m_pListBoxHelper.get(); } protected: BoxType m_aBoxType; diff --git a/accessibility/inc/standard/vclxaccessibletoolbox.hxx b/accessibility/inc/standard/vclxaccessibletoolbox.hxx index b84add919884..0088bb16d1fd 100644 --- a/accessibility/inc/standard/vclxaccessibletoolbox.hxx +++ b/accessibility/inc/standard/vclxaccessibletoolbox.hxx @@ -96,7 +96,7 @@ public: private: void implReleaseToolboxItem( - ToolBoxItemsMap::iterator& _rMapPos, + ToolBoxItemsMap::iterator const & _rMapPos, bool _bNotifyRemoval ); }; diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx index 306cf797ff21..d74ee64fcc5d 100644 --- a/accessibility/source/extended/textwindowaccessibility.cxx +++ b/accessibility/source/extended/textwindowaccessibility.cxx @@ -1121,7 +1121,7 @@ Document::retrieveRunAttributes( return comphelper::mapValuesToSequence( aRunAttrSeq ); } -void Document::changeParagraphText(Paragraph * pParagraph, +void Document::changeParagraphText(Paragraph const * pParagraph, OUString const & rText) { SolarMutexGuard aGuard; @@ -1134,7 +1134,7 @@ void Document::changeParagraphText(Paragraph * pParagraph, } } -void Document::changeParagraphText(Paragraph * pParagraph, +void Document::changeParagraphText(Paragraph const * pParagraph, ::sal_Int32 nBegin, ::sal_Int32 nEnd, bool bCut, bool bPaste, OUString const & rText) @@ -1179,7 +1179,7 @@ void Document::copyParagraphText(Paragraph const * pParagraph, } void Document::changeParagraphAttributes( - Paragraph * pParagraph, ::sal_Int32 nBegin, ::sal_Int32 nEnd, + Paragraph const * pParagraph, ::sal_Int32 nBegin, ::sal_Int32 nEnd, css::uno::Sequence< css::beans::PropertyValue > const & rAttributeSet) { SolarMutexGuard aGuard; @@ -1211,7 +1211,7 @@ void Document::changeParagraphAttributes( } } -void Document::changeParagraphSelection(Paragraph * pParagraph, +void Document::changeParagraphSelection(Paragraph const * pParagraph, ::sal_Int32 nBegin, ::sal_Int32 nEnd) { SolarMutexGuard aGuard; diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx index e7014650bf36..f5cb1602f0f3 100644 --- a/accessibility/source/standard/vclxaccessiblelist.cxx +++ b/accessibility/source/standard/vclxaccessiblelist.cxx @@ -289,7 +289,7 @@ void VCLXAccessibleList::UpdateSelection_Impl_Acc(bool bHasDropDownList) } } -void VCLXAccessibleList::NotifyListItem(css::uno::Any& val) +void VCLXAccessibleList::NotifyListItem(css::uno::Any const & val) { Reference< XAccessible > xCurItem; val >>= xCurItem; diff --git a/accessibility/source/standard/vclxaccessibletoolbox.cxx b/accessibility/source/standard/vclxaccessibletoolbox.cxx index 680ee72e4de6..3bbd139ed9fb 100644 --- a/accessibility/source/standard/vclxaccessibletoolbox.cxx +++ b/accessibility/source/standard/vclxaccessibletoolbox.cxx @@ -303,7 +303,7 @@ void VCLXAccessibleToolBox::UpdateIndeterminate_Impl( ToolBox::ImplToolItems::si } } -void VCLXAccessibleToolBox::implReleaseToolboxItem( ToolBoxItemsMap::iterator& _rMapPos, +void VCLXAccessibleToolBox::implReleaseToolboxItem( ToolBoxItemsMap::iterator const & _rMapPos, bool _bNotifyRemoval ) { Reference< XAccessible > xItemAcc( _rMapPos->second ); |