[Libreoffice-commits] core.git: comphelper/source include/comphelper

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 23 11:43:37 UTC 2019


 comphelper/source/misc/accimplaccess.cxx     |    2 +-
 comphelper/source/misc/backupfilehelper.cxx  |    2 +-
 comphelper/source/misc/sequenceashashmap.cxx |    6 +++---
 include/comphelper/accimplaccess.hxx         |    2 +-
 include/comphelper/backupfilehelper.hxx      |    2 +-
 include/comphelper/sequenceashashmap.hxx     |    6 +++---
 6 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit e48deb1d36d2c237badc4d2d8ce6d3be6a1685b2
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri Aug 23 10:43:44 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Aug 23 13:42:19 2019 +0200

    loplugin:returnconstval in comphelper
    
    Change-Id: I6e8d45e4d5e6223ffa7ae844a8bd46eae8e1f3c8
    Reviewed-on: https://gerrit.libreoffice.org/78000
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Tested-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/comphelper/source/misc/accimplaccess.cxx b/comphelper/source/misc/accimplaccess.cxx
index 8d06e1b91c6e..71a12c8a7e98 100644
--- a/comphelper/source/misc/accimplaccess.cxx
+++ b/comphelper/source/misc/accimplaccess.cxx
@@ -38,7 +38,7 @@ namespace comphelper
     {
     }
 
-    const Sequence< sal_Int8 > OAccessibleImplementationAccess::getUnoTunnelImplementationId()
+    Sequence< sal_Int8 > OAccessibleImplementationAccess::getUnoTunnelImplementationId()
     {
         static cppu::OImplementationId implID;
 
diff --git a/comphelper/source/misc/backupfilehelper.cxx b/comphelper/source/misc/backupfilehelper.cxx
index 113edfbea845..268432df3c99 100644
--- a/comphelper/source/misc/backupfilehelper.cxx
+++ b/comphelper/source/misc/backupfilehelper.cxx
@@ -2203,7 +2203,7 @@ namespace comphelper
 
     /////////////////// helpers ///////////////////////
 
-    const OUString BackupFileHelper::getPackURL()
+    OUString BackupFileHelper::getPackURL()
     {
         return OUString(maUserConfigWorkURL + "/pack");
     }
diff --git a/comphelper/source/misc/sequenceashashmap.cxx b/comphelper/source/misc/sequenceashashmap.cxx
index 0ba26b689a71..eb78e60c55d2 100644
--- a/comphelper/source/misc/sequenceashashmap.cxx
+++ b/comphelper/source/misc/sequenceashashmap.cxx
@@ -180,7 +180,7 @@ void SequenceAsHashMap::operator>>(css::uno::Sequence< css::beans::NamedValue >&
     }
 }
 
-const css::uno::Any SequenceAsHashMap::getAsConstAny(bool bAsPropertyValueList) const
+css::uno::Any SequenceAsHashMap::getAsConstAny(bool bAsPropertyValueList) const
 {
     css::uno::Any aDestination;
     if (bAsPropertyValueList)
@@ -190,14 +190,14 @@ const css::uno::Any SequenceAsHashMap::getAsConstAny(bool bAsPropertyValueList)
     return aDestination;
 }
 
-const css::uno::Sequence< css::beans::NamedValue > SequenceAsHashMap::getAsConstNamedValueList() const
+css::uno::Sequence< css::beans::NamedValue > SequenceAsHashMap::getAsConstNamedValueList() const
 {
     css::uno::Sequence< css::beans::NamedValue > lReturn;
     (*this) >> lReturn;
     return lReturn;
 }
 
-const css::uno::Sequence< css::beans::PropertyValue > SequenceAsHashMap::getAsConstPropertyValueList() const
+css::uno::Sequence< css::beans::PropertyValue > SequenceAsHashMap::getAsConstPropertyValueList() const
 {
     css::uno::Sequence< css::beans::PropertyValue > lReturn;
     (*this) >> lReturn;
diff --git a/include/comphelper/accimplaccess.hxx b/include/comphelper/accimplaccess.hxx
index 86b16c8ad97a..46cce628be12 100644
--- a/include/comphelper/accimplaccess.hxx
+++ b/include/comphelper/accimplaccess.hxx
@@ -65,7 +65,7 @@ namespace comphelper
     public:
 
     private:
-        COMPHELPER_DLLPRIVATE static const css::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId();
+        COMPHELPER_DLLPRIVATE static css::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId();
     };
 
 } // namespace comphelper
diff --git a/include/comphelper/backupfilehelper.hxx b/include/comphelper/backupfilehelper.hxx
index 11a2593aeb4e..e0a2ca244fb0 100644
--- a/include/comphelper/backupfilehelper.hxx
+++ b/include/comphelper/backupfilehelper.hxx
@@ -184,7 +184,7 @@ namespace comphelper
 
     private:
         // internal helper methods
-        static const OUString getPackURL();
+        static OUString getPackURL();
         static const std::vector< OUString >& getCustomizationDirNames();
         static const std::vector< OUString >& getCustomizationFileNames();
 
diff --git a/include/comphelper/sequenceashashmap.hxx b/include/comphelper/sequenceashashmap.hxx
index ba956f8401e6..8e0d07c524aa 100644
--- a/include/comphelper/sequenceashashmap.hxx
+++ b/include/comphelper/sequenceashashmap.hxx
@@ -158,7 +158,7 @@ class SAL_WARN_UNUSED COMPHELPER_DLLPUBLIC SequenceAsHashMap
             @return A const Any, which
                     contains all items of this map.
          */
-        const css::uno::Any getAsConstAny(bool bAsPropertyValue) const;
+        css::uno::Any getAsConstAny(bool bAsPropertyValue) const;
 
 
         /** @short  return this map instance to as a
@@ -172,7 +172,7 @@ class SAL_WARN_UNUSED COMPHELPER_DLLPUBLIC SequenceAsHashMap
             @return A const sequence of type NamedValue, which
                     contains all items of this map.
          */
-        const css::uno::Sequence< css::beans::NamedValue > getAsConstNamedValueList() const;
+        css::uno::Sequence< css::beans::NamedValue > getAsConstNamedValueList() const;
 
 
         /** @short  return this map instance to as a
@@ -186,7 +186,7 @@ class SAL_WARN_UNUSED COMPHELPER_DLLPUBLIC SequenceAsHashMap
             @return A const sequence of type PropertyValue, which
                     contains all items of this map.
          */
-        const css::uno::Sequence< css::beans::PropertyValue > getAsConstPropertyValueList() const;
+        css::uno::Sequence< css::beans::PropertyValue > getAsConstPropertyValueList() const;
 
 
         /** @short  check if the specified item exists


More information about the Libreoffice-commits mailing list