summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-14 14:34:42 +0200
committerNoel Grandin <noel@peralex.com>2014-05-14 16:54:27 +0200
commitb2096deaff52f462e2df4e7bdc9816bb3604fb08 (patch)
tree3df2f9284132042730e12c3f11b6b7a5f13d35cf /package
parent83d77931e03908c1718d9dc48f29c1db984fba85 (diff)
various loplugin:passsequencebyref
Change-Id: Id1045a7f66b4fa10b6491587ba07246a31ceba72
Diffstat (limited to 'package')
-rw-r--r--package/source/xstor/xstorage.cxx8
-rw-r--r--package/source/xstor/xstorage.hxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index b9ddeef3b5a5..29fdb60d0328 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -184,7 +184,7 @@ SotElement_Impl::~SotElement_Impl()
// most of properties are holt by the storage but are not used
OStorage_Impl::OStorage_Impl( uno::Reference< io::XInputStream > xInputStream,
sal_Int32 nMode,
- uno::Sequence< beans::PropertyValue > xProperties,
+ const uno::Sequence< beans::PropertyValue >& xProperties,
uno::Reference< uno::XComponentContext > xContext,
sal_Int32 nStorageType )
: m_rMutexRef( new SotMutexHolder )
@@ -224,7 +224,7 @@ OStorage_Impl::OStorage_Impl( uno::Reference< io::XInputStream > xInputStream,
// most of properties are holt by the storage but are not used
OStorage_Impl::OStorage_Impl( uno::Reference< io::XStream > xStream,
sal_Int32 nMode,
- uno::Sequence< beans::PropertyValue > xProperties,
+ const uno::Sequence< beans::PropertyValue >& xProperties,
uno::Reference< uno::XComponentContext > xContext,
sal_Int32 nStorageType )
: m_rMutexRef( new SotMutexHolder )
@@ -1880,7 +1880,7 @@ void OStorage_Impl::CommitRelInfo( const uno::Reference< container::XNameContain
OStorage::OStorage( uno::Reference< io::XInputStream > xInputStream,
sal_Int32 nMode,
- uno::Sequence< beans::PropertyValue > xProperties,
+ const uno::Sequence< beans::PropertyValue >& xProperties,
uno::Reference< uno::XComponentContext > xContext,
sal_Int32 nStorageType )
: m_pImpl( new OStorage_Impl( xInputStream, nMode, xProperties, xContext, nStorageType ) )
@@ -1891,7 +1891,7 @@ OStorage::OStorage( uno::Reference< io::XInputStream > xInputStream,
OStorage::OStorage( uno::Reference< io::XStream > xStream,
sal_Int32 nMode,
- uno::Sequence< beans::PropertyValue > xProperties,
+ const uno::Sequence< beans::PropertyValue >& xProperties,
uno::Reference< uno::XComponentContext > xContext,
sal_Int32 nStorageType )
: m_pImpl( new OStorage_Impl( xStream, nMode, xProperties, xContext, nStorageType ) )
diff --git a/package/source/xstor/xstorage.hxx b/package/source/xstor/xstorage.hxx
index 298341db10fe..00d4a0bd3024 100644
--- a/package/source/xstor/xstorage.hxx
+++ b/package/source/xstor/xstorage.hxx
@@ -181,13 +181,13 @@ struct OStorage_Impl
// Constructors
OStorage_Impl( ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > xInputStream,
sal_Int32 nMode,
- ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > xProperties,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xProperties,
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
sal_Int32 nStorageType );
OStorage_Impl( ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > xStream,
sal_Int32 nMode,
- ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > xProperties,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xProperties,
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
sal_Int32 nStorageType );
@@ -314,13 +314,13 @@ public:
OStorage( ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > xInputStream,
sal_Int32 nMode,
- ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > xProperties,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xProperties,
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
sal_Int32 nStorageType );
OStorage( ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > xStream,
sal_Int32 nMode,
- ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > xProperties,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xProperties,
::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
sal_Int32 nStorageType );