summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-07 15:59:09 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-07 18:59:55 +0200
commit2bcafc519e25965b5658e80d6af2ec24fe2deb8e (patch)
tree3516da629070f1e5986fa5d24c7601326db22611
parent7a0a0babf64d2462e244fdc7a6c6db795edb9887 (diff)
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: Ifc0f5788c906b2c014f277b2d290c33806c357ab
-rw-r--r--include/sot/stg.hxx4
-rw-r--r--sot/source/sdstor/ucbstorage.cxx16
-rw-r--r--sot/source/unoolestorage/xolesimplestorage.cxx2
-rw-r--r--sot/source/unoolestorage/xolesimplestorage.hxx2
4 files changed, 12 insertions, 12 deletions
diff --git a/include/sot/stg.hxx b/include/sot/stg.hxx
index a0a5eeaa5884..8d4479e90511 100644
--- a/include/sot/stg.hxx
+++ b/include/sot/stg.hxx
@@ -221,7 +221,7 @@ friend class UCBStorage;
protected:
virtual ~UCBStorageStream();
public:
- UCBStorageStream( const OUString& rName, StreamMode nMode, bool bDirect, const OString* pKey, bool bRepair, css::uno::Reference< css::ucb::XProgressHandler > xProgress );
+ UCBStorageStream( const OUString& rName, StreamMode nMode, bool bDirect, const OString* pKey, bool bRepair, css::uno::Reference< css::ucb::XProgressHandler > const & xProgress );
UCBStorageStream( UCBStorageStream_Impl* );
virtual sal_uLong Read( void * pData, sal_uLong nSize ) override;
@@ -269,7 +269,7 @@ public:
bool bDirect,
bool bIsRoot,
bool bIsRepair,
- css::uno::Reference< css::ucb::XProgressHandler >
+ css::uno::Reference< css::ucb::XProgressHandler > const &
xProgressHandler );
UCBStorage( UCBStorage_Impl* );
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index dcaa36f30f3f..0a12fc8a935b 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -437,7 +437,7 @@ public:
bool m_bIsOLEStorage;// an OLEStorage on a UCBStorageStream makes this an Autocommit-stream
UCBStorageStream_Impl( const OUString&, StreamMode, UCBStorageStream*, bool, const OString* pKey=nullptr,
- bool bRepair = false, Reference< XProgressHandler > xProgress = Reference< XProgressHandler >() );
+ bool bRepair = false, Reference< XProgressHandler > const & xProgress = Reference< XProgressHandler >() );
void Free();
bool Init();
@@ -498,9 +498,9 @@ public:
Reference< XProgressHandler > m_xProgressHandler;
UCBStorage_Impl( const ::ucbhelper::Content&, const OUString&, StreamMode, UCBStorage*, bool,
- bool, bool = false, Reference< XProgressHandler > = Reference< XProgressHandler >() );
+ bool, bool = false, Reference< XProgressHandler > const & = Reference< XProgressHandler >() );
UCBStorage_Impl( const OUString&, StreamMode, UCBStorage*, bool, bool,
- bool = false, Reference< XProgressHandler > = Reference< XProgressHandler >() );
+ bool = false, Reference< XProgressHandler > const & = Reference< XProgressHandler >() );
UCBStorage_Impl( SvStream&, UCBStorage*, bool );
void Init();
sal_Int16 Commit();
@@ -634,7 +634,7 @@ bool UCBStorageElement_Impl::IsModified()
return bModified;
}
-UCBStorageStream_Impl::UCBStorageStream_Impl( const OUString& rName, StreamMode nMode, UCBStorageStream* pStream, bool bDirect, const OString* pKey, bool bRepair, Reference< XProgressHandler > xProgress )
+UCBStorageStream_Impl::UCBStorageStream_Impl( const OUString& rName, StreamMode nMode, UCBStorageStream* pStream, bool bDirect, const OString* pKey, bool bRepair, Reference< XProgressHandler > const & xProgress )
: m_pAntiImpl( pStream )
, m_aURL( rName )
, m_pContent( nullptr )
@@ -1241,7 +1241,7 @@ void UCBStorageStream_Impl::PrepareCachedForReopen( StreamMode nMode )
}
}
-UCBStorageStream::UCBStorageStream( const OUString& rName, StreamMode nMode, bool bDirect, const OString* pKey, bool bRepair, Reference< XProgressHandler > xProgress )
+UCBStorageStream::UCBStorageStream( const OUString& rName, StreamMode nMode, bool bDirect, const OString* pKey, bool bRepair, Reference< XProgressHandler > const & xProgress )
{
// pImp must be initialized in the body, because otherwise the vtable of the stream is not initialized
// to class UCBStorageStream !
@@ -1451,7 +1451,7 @@ UCBStorage::UCBStorage( const ::ucbhelper::Content& rContent, const OUString& rN
StorageBase::m_nMode = pImp->m_nMode;
}
-UCBStorage::UCBStorage( const OUString& rName, StreamMode nMode, bool bDirect, bool bIsRoot, bool bIsRepair, Reference< XProgressHandler > xProgressHandler )
+UCBStorage::UCBStorage( const OUString& rName, StreamMode nMode, bool bDirect, bool bIsRoot, bool bIsRepair, Reference< XProgressHandler > const & xProgressHandler )
{
// pImp must be initialized in the body, because otherwise the vtable of the stream is not initialized
// to class UCBStorage !
@@ -1490,7 +1490,7 @@ UCBStorage::~UCBStorage()
pImp->ReleaseRef();
}
-UCBStorage_Impl::UCBStorage_Impl( const ::ucbhelper::Content& rContent, const OUString& rName, StreamMode nMode, UCBStorage* pStorage, bool bDirect, bool bIsRoot, bool bIsRepair, Reference< XProgressHandler > xProgressHandler )
+UCBStorage_Impl::UCBStorage_Impl( const ::ucbhelper::Content& rContent, const OUString& rName, StreamMode nMode, UCBStorage* pStorage, bool bDirect, bool bIsRoot, bool bIsRepair, Reference< XProgressHandler > const & xProgressHandler )
: m_pAntiImpl( pStorage )
, m_pContent( new ::ucbhelper::Content( rContent ) )
, m_pTempFile( nullptr )
@@ -1522,7 +1522,7 @@ UCBStorage_Impl::UCBStorage_Impl( const ::ucbhelper::Content& rContent, const OU
m_aURL = rName;
}
-UCBStorage_Impl::UCBStorage_Impl( const OUString& rName, StreamMode nMode, UCBStorage* pStorage, bool bDirect, bool bIsRoot, bool bIsRepair, Reference< XProgressHandler > xProgressHandler )
+UCBStorage_Impl::UCBStorage_Impl( const OUString& rName, StreamMode nMode, UCBStorage* pStorage, bool bDirect, bool bIsRoot, bool bIsRepair, Reference< XProgressHandler > const & xProgressHandler )
: m_pAntiImpl( pStorage )
, m_pContent( nullptr )
, m_pTempFile( nullptr )
diff --git a/sot/source/unoolestorage/xolesimplestorage.cxx b/sot/source/unoolestorage/xolesimplestorage.cxx
index 76f2b76af79d..9eff44665900 100644
--- a/sot/source/unoolestorage/xolesimplestorage.cxx
+++ b/sot/source/unoolestorage/xolesimplestorage.cxx
@@ -40,7 +40,7 @@ const sal_Int32 nBytesCount = 32000;
OLESimpleStorage::OLESimpleStorage(
- css::uno::Reference<css::uno::XComponentContext> xContext,
+ css::uno::Reference<css::uno::XComponentContext> const & xContext,
css::uno::Sequence<css::uno::Any> const &aArguments)
: m_bDisposed( false )
, m_pStream( nullptr )
diff --git a/sot/source/unoolestorage/xolesimplestorage.hxx b/sot/source/unoolestorage/xolesimplestorage.hxx
index fb0042b04bd4..4c0905800500 100644
--- a/sot/source/unoolestorage/xolesimplestorage.hxx
+++ b/sot/source/unoolestorage/xolesimplestorage.hxx
@@ -62,7 +62,7 @@ class OLESimpleStorage : public cppu::WeakImplHelper<css::embed::XOLESimpleStora
public:
- OLESimpleStorage(css::uno::Reference<css::uno::XComponentContext> xContext,
+ OLESimpleStorage(css::uno::Reference<css::uno::XComponentContext> const & xContext,
css::uno::Sequence<css::uno::Any> const &arguments);
virtual ~OLESimpleStorage();