diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/inc/ZipPackage.hxx | 2 | ||||
-rw-r--r-- | package/inc/ZipPackageFolder.hxx | 2 | ||||
-rw-r--r-- | package/inc/ZipPackageStream.hxx | 2 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackage.cxx | 2 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackageFolder.cxx | 2 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackageStream.cxx | 2 |
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(); |