diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-11 10:20:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-11 11:38:57 +0200 |
commit | f678b82f0e4dea47dfc8938f01442b6eb1ce23ad (patch) | |
tree | ac8e998a3857c4d8a51cfb90e7644de2f40e3829 /basic/source/uno | |
parent | bfff081e74ad06a7e353669eec345c6440db57cb (diff) |
clang-tidy performance-unnecessary-value-param in basic
Change-Id: I997213ca28efc2df04d454ffaf3c81c9cbad09ac
Diffstat (limited to 'basic/source/uno')
-rw-r--r-- | basic/source/uno/dlgcont.cxx | 2 | ||||
-rw-r--r-- | basic/source/uno/namecont.cxx | 6 | ||||
-rw-r--r-- | basic/source/uno/scriptcont.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx index ba60807989fe..b5b20fff5578 100644 --- a/basic/source/uno/dlgcont.cxx +++ b/basic/source/uno/dlgcont.cxx @@ -112,7 +112,7 @@ bool SAL_CALL SfxDialogLibraryContainer::isLibraryElementValid(const Any& rEleme } bool writeOasis2OOoLibraryElement( - Reference< XInputStream > xInput, Reference< XOutputStream > xOutput ) + const Reference< XInputStream >& xInput, const Reference< XOutputStream >& xOutput ) { Reference< XComponentContext > xContext( comphelper::getProcessComponentContext() ); diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 5945253be971..45d35f0af727 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -144,7 +144,7 @@ sal_Bool NameContainer::hasByName( const OUString& aName ) void NameContainer::replaceByName( const OUString& aName, const Any& aElement ) throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) { - Type aAnyType = aElement.getValueType(); + const Type& aAnyType = aElement.getValueType(); if( mType != aAnyType ) { throw IllegalArgumentException(); @@ -200,7 +200,7 @@ void NameContainer::insertCheck(const OUString& aName, const Any& aElement) void NameContainer::insertNoCheck(const OUString& aName, const Any& aElement) throw(IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception) { - Type aAnyType = aElement.getValueType(); + const Type& aAnyType = aElement.getValueType(); if( mType != aAnyType ) { throw IllegalArgumentException(); @@ -584,7 +584,7 @@ static void checkAndCopyFileImpl( const INetURLObject& rSourceFolderInetObj, const INetURLObject& rTargetFolderInetObj, const OUString& rCheckFileName, const OUString& rCheckExtension, - Reference< XSimpleFileAccess3 > xSFI ) + const Reference< XSimpleFileAccess3 >& xSFI ) { INetURLObject aTargetFolderInetObj( rTargetFolderInetObj ); aTargetFolderInetObj.insertName( rCheckFileName, true, INetURLObject::LAST_SEGMENT, diff --git a/basic/source/uno/scriptcont.cxx b/basic/source/uno/scriptcont.cxx index 87a106ead62d..64fdfe0fa0d2 100644 --- a/basic/source/uno/scriptcont.cxx +++ b/basic/source/uno/scriptcont.cxx @@ -546,7 +546,7 @@ void SAL_CALL SfxScriptLibraryContainer::changeLibraryPassword( const OUString& } -void setStreamKey( uno::Reference< io::XStream > xStream, const OUString& aPass ) +void setStreamKey( const uno::Reference< io::XStream >& xStream, const OUString& aPass ) { uno::Reference< embed::XEncryptionProtectedSource > xEncrStream( xStream, uno::UNO_QUERY ); if ( xEncrStream.is() ) |