summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-20 13:00:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-20 15:24:34 +0200
commit9f958c076a86e80a48fcd7bbca65a834568e94ea (patch)
treecfa0b4f55a6b6717e5a359357fd20779e9d98b00 /package
parenta40558be785756929f606ab0798a026b985e0ffb (diff)
loplugin:passstuffbyref
Change-Id: I336fd329b577b6fa141265d8bc7ce67784bd7306 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133210 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r--package/inc/ZipPackage.hxx2
-rw-r--r--package/inc/ZipPackageFolder.hxx2
-rw-r--r--package/inc/ZipPackageStream.hxx2
-rw-r--r--package/source/zippackage/ZipPackage.cxx2
-rw-r--r--package/source/zippackage/ZipPackageFolder.cxx2
-rw-r--r--package/source/zippackage/ZipPackageStream.cxx2
6 files changed, 6 insertions, 6 deletions
diff --git a/package/inc/ZipPackage.hxx b/package/inc/ZipPackage.hxx
index 729d025e089d..e6cf614ad503 100644
--- a/package/inc/ZipPackage.hxx
+++ b/package/inc/ZipPackage.hxx
@@ -147,7 +147,7 @@ public:
// XUnoTunnel
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
/// @throws css::uno::RuntimeException
- static css::uno::Sequence < sal_Int8 > getUnoTunnelId();
+ static const css::uno::Sequence < sal_Int8 > & getUnoTunnelId();
// XPropertySet
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
diff --git a/package/inc/ZipPackageFolder.hxx b/package/inc/ZipPackageFolder.hxx
index 21ff8343c252..82582293158f 100644
--- a/package/inc/ZipPackageFolder.hxx
+++ b/package/inc/ZipPackageFolder.hxx
@@ -91,7 +91,7 @@ public:
ZipContentInfo& doGetByName( const OUString& aName );
- static css::uno::Sequence < sal_Int8 > getUnoTunnelId();
+ static const css::uno::Sequence < sal_Int8 > & getUnoTunnelId();
void setPackageFormat_Impl( sal_Int32 nFormat ) { m_nFormat = nFormat; }
void setRemoveOnInsertMode_Impl( bool bRemove ) { mbAllowRemoveOnInsert = bRemove; }
diff --git a/package/inc/ZipPackageStream.hxx b/package/inc/ZipPackageStream.hxx
index 20ee2cab7275..aa150717474d 100644
--- a/package/inc/ZipPackageStream.hxx
+++ b/package/inc/ZipPackageStream.hxx
@@ -137,7 +137,7 @@ public:
void setZipEntryOnLoading( const ZipEntry &rInEntry);
void successfullyWritten( ZipEntry const *pEntry );
- static css::uno::Sequence < sal_Int8 > getUnoTunnelId();
+ static const css::uno::Sequence < sal_Int8 > & getUnoTunnelId();
// XActiveDataSink
virtual void SAL_CALL setInputStream( const css::uno::Reference< css::io::XInputStream >& aStream ) override;
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index e00c47d10a5f..c134a9d94c5d 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -1661,7 +1661,7 @@ sal_Bool SAL_CALL ZipPackage::supportsService( OUString const & rServiceName )
return cppu::supportsService(this, rServiceName);
}
-Sequence< sal_Int8 > ZipPackage::getUnoTunnelId()
+const Sequence< sal_Int8 > & ZipPackage::getUnoTunnelId()
{
static const comphelper::UnoIdInit implId;
return implId.getSeq();
diff --git a/package/source/zippackage/ZipPackageFolder.cxx b/package/source/zippackage/ZipPackageFolder.cxx
index b65c9c697788..118ec39923c0 100644
--- a/package/source/zippackage/ZipPackageFolder.cxx
+++ b/package/source/zippackage/ZipPackageFolder.cxx
@@ -143,7 +143,7 @@ void ZipPackageFolder::setChildStreamsTypeByExtension( const beans::StringPair&
}
}
-css::uno::Sequence < sal_Int8 > ZipPackageFolder::getUnoTunnelId()
+const css::uno::Sequence < sal_Int8 > & ZipPackageFolder::getUnoTunnelId()
{
static const comphelper::UnoIdInit lcl_CachedImplId;
return lcl_CachedImplId.getSeq();
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx
index b8157839bbba..f2ec696b5cc8 100644
--- a/package/source/zippackage/ZipPackageStream.cxx
+++ b/package/source/zippackage/ZipPackageStream.cxx
@@ -71,7 +71,7 @@ using namespace cppu;
#define THROW_WHERE ""
#endif
-css::uno::Sequence < sal_Int8 > ZipPackageStream::getUnoTunnelId()
+const css::uno::Sequence < sal_Int8 > & ZipPackageStream::getUnoTunnelId()
{
static const comphelper::UnoIdInit lcl_CachedImplId;
return lcl_CachedImplId.getSeq();