diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-10 20:39:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-11 12:42:53 +0200 |
commit | 819a4064ba03f230a4b2936662adbe56f478f8db (patch) | |
tree | 2b7c6b23fc280106b6e67346496da21220ea4fe1 /ucb/source/ucp/webdav-neon | |
parent | 6a3cb1545290d822455b7c3259702a1d1afc8ef9 (diff) |
loplugin:moveparam in ucb
Change-Id: I61a7910f3ef15b251b1763b7c56848ccbb22fe91
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123352
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp/webdav-neon')
-rw-r--r-- | ucb/source/ucp/webdav-neon/DAVRequestEnvironment.hxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx | 38 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/PropfindCache.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx | 2 |
4 files changed, 23 insertions, 23 deletions
diff --git a/ucb/source/ucp/webdav-neon/DAVRequestEnvironment.hxx b/ucb/source/ucp/webdav-neon/DAVRequestEnvironment.hxx index 22c149d559a8..9059f6162804 100644 --- a/ucb/source/ucp/webdav-neon/DAVRequestEnvironment.hxx +++ b/ucb/source/ucp/webdav-neon/DAVRequestEnvironment.hxx @@ -49,11 +49,11 @@ struct DAVRequestEnvironment DAVRequestEnvironment( const OUString & rRequestURI, const rtl::Reference< DAVAuthListener > & xListener, - const DAVRequestHeaders & rRequestHeaders, + DAVRequestHeaders && rRequestHeaders, const uno::Reference< ucb::XCommandEnvironment > & xEnv) : m_aRequestURI( rRequestURI ), m_xAuthListener( xListener ), - m_aRequestHeaders( rRequestHeaders ), + m_aRequestHeaders( std::move(rRequestHeaders) ), m_xEnv( xEnv ){} DAVRequestEnvironment() {} diff --git a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx index 4a239bd80d07..b13edc253c0c 100644 --- a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx +++ b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx @@ -189,7 +189,7 @@ void DAVResourceAccess::OPTIONS( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -231,7 +231,7 @@ void DAVResourceAccess::PROPFIND( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -271,7 +271,7 @@ void DAVResourceAccess::PROPFIND( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ) ; + std::move(aHeaders), xEnv ) ) ; } catch ( const DAVException & e ) { @@ -309,7 +309,7 @@ void DAVResourceAccess::PROPPATCH( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -349,7 +349,7 @@ void DAVResourceAccess::HEAD( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -387,7 +387,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -427,7 +427,7 @@ void DAVResourceAccess::GET( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -468,7 +468,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::GET( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -511,7 +511,7 @@ void DAVResourceAccess::GET0( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - rRequestHeaders, xEnv ) ); + DAVRequestHeaders(rRequestHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -553,7 +553,7 @@ void DAVResourceAccess::GET( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -634,7 +634,7 @@ void DAVResourceAccess::PUT( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -688,7 +688,7 @@ uno::Reference< io::XInputStream > DAVResourceAccess::POST( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -750,7 +750,7 @@ void DAVResourceAccess::POST( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -793,7 +793,7 @@ void DAVResourceAccess::MKCOL( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -833,7 +833,7 @@ void DAVResourceAccess::COPY( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ), + std::move(aHeaders), xEnv ), bOverwrite ); } catch ( const DAVException & e ) @@ -874,7 +874,7 @@ void DAVResourceAccess::MOVE( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ), + std::move(aHeaders), xEnv ), bOverwrite ); } catch ( const DAVException & e ) @@ -911,7 +911,7 @@ void DAVResourceAccess::DESTROY( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -950,7 +950,7 @@ void DAVResourceAccess::LOCK( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { @@ -985,7 +985,7 @@ void DAVResourceAccess::UNLOCK( DAVRequestEnvironment( getRequestURI(), new DAVAuthListener_Impl( xEnv, m_aURL ), - aHeaders, xEnv ) ); + std::move(aHeaders), xEnv ) ); } catch ( const DAVException & e ) { diff --git a/ucb/source/ucp/webdav-neon/PropfindCache.hxx b/ucb/source/ucp/webdav-neon/PropfindCache.hxx index b2e4008dc682..f78d526a7fe0 100644 --- a/ucb/source/ucp/webdav-neon/PropfindCache.hxx +++ b/ucb/source/ucp/webdav-neon/PropfindCache.hxx @@ -47,7 +47,7 @@ namespace webdav_ucp OUString& getURL() { return m_sURL; }; const std::vector< DAVResourceInfo >& getPropertiesNames() const { return m_aPropertiesNames; }; - void setPropertiesNames( const std::vector< DAVResourceInfo >& aPropertiesNames ) { m_aPropertiesNames = aPropertiesNames; }; + void setPropertiesNames( std::vector< DAVResourceInfo >&& aPropertiesNames ) { m_aPropertiesNames = std::move(aPropertiesNames); }; }; // Define the PropertyNames cache diff --git a/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx b/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx index d8ff4ff6fb03..ddeeec03fe28 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx @@ -331,7 +331,7 @@ uno::Sequence< beans::Property > Content::getProperties( { xResAccess->PROPFIND( DAVZERO, props, xEnv ); - aPropsNames.setPropertiesNames( props ); + aPropsNames.setPropertiesNames( std::vector(props) ); aStaticPropertyNamesCache.addCachePropertyNames( aPropsNames ); } |