diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 15:59:09 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 18:59:55 +0200 |
commit | 2bcafc519e25965b5658e80d6af2ec24fe2deb8e (patch) | |
tree | 3516da629070f1e5986fa5d24c7601326db22611 /sot | |
parent | 7a0a0babf64d2462e244fdc7a6c6db795edb9887 (diff) |
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: Ifc0f5788c906b2c014f277b2d290c33806c357ab
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 16 | ||||
-rw-r--r-- | sot/source/unoolestorage/xolesimplestorage.cxx | 2 | ||||
-rw-r--r-- | sot/source/unoolestorage/xolesimplestorage.hxx | 2 |
3 files changed, 10 insertions, 10 deletions
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(); |