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>
This commit is contained in:
Noel Grandin
2019-08-23 13:42:19 +02:00
parent 3d9f291cd3
commit e48deb1d36
6 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ namespace comphelper
{
}
const Sequence< sal_Int8 > OAccessibleImplementationAccess::getUnoTunnelImplementationId()
Sequence< sal_Int8 > OAccessibleImplementationAccess::getUnoTunnelImplementationId()
{
static cppu::OImplementationId implID;
+1 -1
View File
@@ -2203,7 +2203,7 @@ namespace comphelper
/////////////////// helpers ///////////////////////
const OUString BackupFileHelper::getPackURL()
OUString BackupFileHelper::getPackURL()
{
return OUString(maUserConfigWorkURL + "/pack");
}
+3 -3
View File
@@ -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;
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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();
+3 -3
View File
@@ -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