[Libreoffice-commits] core.git: accessibility/inc accessibility/source

Noel Grandin noel.grandin at collabora.co.uk
Thu Jul 20 07:16:28 UTC 2017


 accessibility/inc/extended/textwindowaccessibility.hxx    |    8 ++++----
 accessibility/inc/standard/vclxaccessiblelist.hxx         |    2 +-
 accessibility/inc/standard/vclxaccessibletoolbox.hxx      |    2 +-
 accessibility/source/extended/textwindowaccessibility.cxx |    8 ++++----
 accessibility/source/standard/vclxaccessiblelist.cxx      |    2 +-
 accessibility/source/standard/vclxaccessibletoolbox.cxx   |    2 +-
 6 files changed, 12 insertions(+), 12 deletions(-)

New commits:
commit 3b10ec87e383ce6ab14c0cede46ee98c13b11e61
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Wed Jul 19 13:56:36 2017 +0200

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

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 );


More information about the Libreoffice-commits mailing list