summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-23 10:43:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-23 13:42:19 +0200
commite48deb1d36d2c237badc4d2d8ce6d3be6a1685b2 (patch)
tree25fdf0bf6ce44dd29879723666b1c3e01b45de5d
parent3d9f291cd336dc59d8582e349d5f9e8e86776703 (diff)
loplugin:returnconstval in comphelper
Change-Id: I6e8d45e4d5e6223ffa7ae844a8bd46eae8e1f3c8 Reviewed-on: https://gerrit.libreoffice.org/78000 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--comphelper/source/misc/accimplaccess.cxx2
-rw-r--r--comphelper/source/misc/backupfilehelper.cxx2
-rw-r--r--comphelper/source/misc/sequenceashashmap.cxx6
-rw-r--r--include/comphelper/accimplaccess.hxx2
-rw-r--r--include/comphelper/backupfilehelper.hxx2
-rw-r--r--include/comphelper/sequenceashashmap.hxx6
6 files changed, 10 insertions, 10 deletions
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