diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-04 11:20:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-05 07:49:30 +0100 |
commit | e4472d3c139294499f4c0caeebd9d4e995958eb0 (patch) | |
tree | 3e62a6530f8b758dddab18981ee38cc76ecaef9e /ucb | |
parent | 126e5a4d5b1d6c7ba5b313786793a38f99488b33 (diff) |
loplugin:unnecessaryparen include more assignments
Change-Id: I9fb8366634b31230b732dd38a98f800075529714
Reviewed-on: https://gerrit.libreoffice.org/64510
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/file/filglob.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonHeadRequest.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/NeonSession.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx | 2 |
5 files changed, 5 insertions, 7 deletions
diff --git a/ucb/source/ucp/file/filglob.cxx b/ucb/source/ucp/file/filglob.cxx index 56b581e5477f..98e557a228ee 100644 --- a/ucb/source/ucp/file/filglob.cxx +++ b/ucb/source/ucp/file/filglob.cxx @@ -178,9 +178,7 @@ namespace fileaccess { { sal_Int32 srcL = aOldPrefix.getLength(); - OUString new_Name = old_Name.copy( srcL ); - new_Name = ( aNewPrefix + new_Name ); - return new_Name; + return aNewPrefix + old_Name.copy( srcL ); } diff --git a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx index dcff8c710e77..bf1004a9e411 100644 --- a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx +++ b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx @@ -1136,7 +1136,7 @@ void DAVResourceAccess::resetUri() { std::vector< NeonUri >::const_iterator it = m_aRedirectURIs.begin(); - NeonUri aUri( (*it) ); + NeonUri aUri( *it ); m_aRedirectURIs.clear(); setURL ( aUri.GetURI() ); initialize(); diff --git a/ucb/source/ucp/webdav-neon/NeonHeadRequest.cxx b/ucb/source/ucp/webdav-neon/NeonHeadRequest.cxx index 9f112fed099e..b830fb7926b7 100644 --- a/ucb/source/ucp/webdav-neon/NeonHeadRequest.cxx +++ b/ucb/source/ucp/webdav-neon/NeonHeadRequest.cxx @@ -74,7 +74,7 @@ void process_headers( ne_request * req, if ( it != rHeaderNames.end() ) { - aHeaderName = (*it); + aHeaderName = *it; bIncludeIt = true; } } diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx index c10796a48e79..05260df637b3 100644 --- a/ucb/source/ucp/webdav-neon/NeonSession.cxx +++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx @@ -2044,7 +2044,7 @@ void runResponseHeaderHandler( void * userdata, if ( it != pCtx->pHeaderNames->end() ) { - aHeaderName = (*it); + aHeaderName = *it; bIncludeIt = true; } } diff --git a/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx b/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx index d86371d17bc8..e650085d6229 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx @@ -266,7 +266,7 @@ void ContentProvider::getProperty( const PropertyMap::const_iterator it = m_pProps->find( aProp ); if ( it != m_pProps->end() ) { - rProp = (*it); + rProp = *it; } else { |