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/ftp | |
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/ftp')
-rw-r--r-- | ucb/source/ucp/ftp/ftpcontent.cxx | 6 | ||||
-rw-r--r-- | ucb/source/ucp/ftp/ftpresultsetfactory.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx index ca38f16ae08c..eb9219b9a5c1 100644 --- a/ucb/source/ucp/ftp/ftpcontent.cxx +++ b/ucb/source/ucp/ftp/ftpcontent.cxx @@ -199,11 +199,11 @@ void SAL_CALL FTPContent::abort( sal_Int32 /*CommandId*/ ) ResultSetFactory::ResultSetFactory(const Reference<XComponentContext >& rxContext, const Reference<XContentProvider >& xProvider, const Sequence<Property>& seq, - const std::vector<FTPDirentry>& dirvec) + std::vector<FTPDirentry>&& dirvec) : m_xContext(rxContext), m_xProvider(xProvider), m_seq(seq), - m_dirvec(dirvec) + m_dirvec(std::move(dirvec)) { } @@ -489,7 +489,7 @@ Any SAL_CALL FTPContent::execute( const Command& aCommand, std::make_unique<ResultSetFactory>(m_xContext, m_xProvider.get(), aOpenCommand.Properties, - resvec)); + std::move(resvec))); aRet <<= xSet; } else if(aOpenCommand.Mode == diff --git a/ucb/source/ucp/ftp/ftpresultsetfactory.hxx b/ucb/source/ucp/ftp/ftpresultsetfactory.hxx index 85f9f164732c..d521c570dcc4 100644 --- a/ucb/source/ucp/ftp/ftpresultsetfactory.hxx +++ b/ucb/source/ucp/ftp/ftpresultsetfactory.hxx @@ -41,7 +41,7 @@ public: ResultSetFactory(const css::uno::Reference<css::uno::XComponentContext >& rxContext, const css::uno::Reference<css::ucb::XContentProvider >& xProvider, const css::uno::Sequence<css::beans::Property>& seq, - const std::vector<FTPDirentry>& dirvec); + std::vector<FTPDirentry>&& dirvec); rtl::Reference<ResultSetBase> createResultSet(); private: |