diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-23 09:47:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-24 08:37:51 +0200 |
commit | f31c9f16fefd16ea434cdd68721d45bced9b78e1 (patch) | |
tree | c0c504cb4e4d41e168f7118c1baee6b4091aa51d /ucb/source | |
parent | 645db9a2643832e29dbdf904e1cf7b323d273f86 (diff) |
clang-tidy performance-unnecessary-copy-init in test..xmlscript
Change-Id: I1ae16467a8e58e8a50f59b7a140e9f8b68bde07e
Reviewed-on: https://gerrit.libreoffice.org/62254
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/ucp/file/bc.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/ftp/ftpcontent.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonSession.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/webdavcontent.cxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx index 579c9c8cd308..3b65f7117850 100644 --- a/ucb/source/ucp/file/bc.cxx +++ b/ucb/source/ucp/file/bc.cxx @@ -1127,7 +1127,7 @@ void BaseContent::insert( sal_Int32 nMyCommandIdentifier, RTL_TEXTENCODING_UTF8), static_cast<cppu::OWeakObject*>(this), m_pMyShell,nMyCommandIdentifier); - uno::Reference<task::XInteractionRequest> const xReq(aRequestImpl.getRequest()); + uno::Reference<task::XInteractionRequest> const& xReq(aRequestImpl.getRequest()); m_pMyShell->handleTask( nMyCommandIdentifier, xReq ); if (aRequestImpl.aborted() || aRequestImpl.newName().isEmpty()) diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx index a07e626edb07..5279a74aa1b2 100644 --- a/ucb/source/ucp/ftp/ftpcontent.cxx +++ b/ucb/source/ucp/ftp/ftpcontent.cxx @@ -717,7 +717,7 @@ void FTPContent::insert(const InsertCommandArgument& aInsertCommand, } XInteractionRequestImpl request; - Reference<XInteractionRequest> xReq(request.getRequest()); + const Reference<XInteractionRequest>& xReq(request.getRequest()); xInt->handle(xReq); if (request.approved()) { bReplace = true; diff --git a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx index bf28bb1b0c41..dcff8c710e77 100644 --- a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx +++ b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx @@ -1021,7 +1021,7 @@ void DAVResourceAccess::initialize() if ( m_aPath.isEmpty() ) { NeonUri aURI( m_aURL ); - OUString aPath( aURI.GetPath() ); + const OUString& aPath( aURI.GetPath() ); /* #134089# - Check URI */ if ( aPath.isEmpty() ) diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx index 28ed1b17c43b..57ffe1002026 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.cxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx @@ -294,7 +294,7 @@ int NeonSession::NeonAuth(const char* inAuthProtocol, const char* inRealm, try { NeonUri uri( getRequestEnvironment().m_aRequestURI ); - OUString aUserInfo( uri.GetUserInfo() ); + const OUString& aUserInfo( uri.GetUserInfo() ); if ( !aUserInfo.isEmpty() ) { sal_Int32 nPos = aUserInfo.indexOf( '@' ); diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx index 247b75f990e8..86cac8850bce 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx @@ -3849,7 +3849,7 @@ Content::ResourceType Content::getResourceType( { // extract host name and connection port NeonUri theUri( rURL ); - OUString aHostName = theUri.GetHost(); + const OUString& aHostName = theUri.GetHost(); sal_Int32 nPort = theUri.GetPort(); throw DAVException( DAVException::DAV_HTTP_TIMEOUT, NeonUri::makeConnectionEndPointString( aHostName, |