summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-09 21:10:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-09 22:04:31 +0000
commitd22519f62bcd1325f1e7cc920a115b68fccd1922 (patch)
tree3b761a7f8c25f8f765c8d25662a803e47b5a7167 /package
parentd44168795aed842d524e3a349962f2b98a8ac504 (diff)
V801: Decreased performance
Change-Id: Id8cd45d2844c121f63684734ab3546c24a1aab32
Diffstat (limited to 'package')
-rw-r--r--package/source/xstor/owriteablestream.cxx12
-rw-r--r--package/source/xstor/owriteablestream.hxx2
2 files changed, 7 insertions, 7 deletions
diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx
index 9a2ac17c39ae..00b8d58b2b63 100644
--- a/package/source/xstor/owriteablestream.cxx
+++ b/package/source/xstor/owriteablestream.cxx
@@ -205,12 +205,12 @@ bool KillFile( const OUString& aURL, const uno::Reference< uno::XComponentContex
return bRet;
}
-OUString GetNewTempFileURL( const uno::Reference< uno::XComponentContext > xContext )
+OUString GetNewTempFileURL( const uno::Reference< uno::XComponentContext >& rContext )
{
OUString aTempURL;
uno::Reference < beans::XPropertySet > xTempFile(
- io::TempFile::create(xContext),
+ io::TempFile::create(rContext),
uno::UNO_QUERY_THROW );
try {
@@ -230,10 +230,10 @@ OUString GetNewTempFileURL( const uno::Reference< uno::XComponentContext > xCont
return aTempURL;
}
-uno::Reference< io::XStream > CreateMemoryStream( const uno::Reference< uno::XComponentContext >& xContext )
+uno::Reference< io::XStream > CreateMemoryStream( const uno::Reference< uno::XComponentContext >& rContext )
{
return uno::Reference< io::XStream >(
- xContext->getServiceManager()->createInstanceWithContext("com.sun.star.comp.MemoryStream", xContext),
+ rContext->getServiceManager()->createInstanceWithContext("com.sun.star.comp.MemoryStream", rContext),
uno::UNO_QUERY_THROW);
}
@@ -242,7 +242,7 @@ uno::Reference< io::XStream > CreateMemoryStream( const uno::Reference< uno::XCo
OWriteStream_Impl::OWriteStream_Impl( OStorage_Impl* pParent,
const uno::Reference< packages::XDataSinkEncrSupport >& xPackageStream,
const uno::Reference< lang::XSingleServiceFactory >& xPackage,
- const uno::Reference< uno::XComponentContext >& xContext,
+ const uno::Reference< uno::XComponentContext >& rContext,
bool bForceEncrypted,
sal_Int32 nStorageType,
bool bDefaultCompress,
@@ -251,7 +251,7 @@ OWriteStream_Impl::OWriteStream_Impl( OStorage_Impl* pParent,
, m_bHasDataToFlush( false )
, m_bFlushed( false )
, m_xPackageStream( xPackageStream )
-, m_xContext( xContext )
+, m_xContext( rContext )
, m_pParent( pParent )
, m_bForceEncrypted( bForceEncrypted )
, m_bUseCommonEncryption( !bForceEncrypted && nStorageType == embed::StorageFormats::PACKAGE )
diff --git a/package/source/xstor/owriteablestream.hxx b/package/source/xstor/owriteablestream.hxx
index 2599753d7aea..69b4f91b66af 100644
--- a/package/source/xstor/owriteablestream.hxx
+++ b/package/source/xstor/owriteablestream.hxx
@@ -81,7 +81,7 @@ struct WSInternalData_Impl
sal_Int32 m_nStorageType;
// the mutex reference MUST NOT be empty
- WSInternalData_Impl( const SotMutexHolderRef rMutexRef, sal_Int32 nStorageType )
+ WSInternalData_Impl( const SotMutexHolderRef& rMutexRef, sal_Int32 nStorageType )
: m_rSharedMutexRef( rMutexRef )
, m_pTypeCollection( NULL )
, m_aListenersContainer( rMutexRef->GetMutex() )