diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-18 11:35:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-18 13:44:43 +0200 |
commit | 010e2a574c7fadfb60d6794a1bfb38acc8082e0a (patch) | |
tree | 22bed9f29aa3291845be4ae9f8cafd7509496a65 /ucb/source/ucp | |
parent | e59db22b3b57c9e1a5678218cb56fb75bcc84c26 (diff) |
loplugin:moveit
Change-Id: I34de7408553e4ca702cab9aa611c03dc60b9b6a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138472
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/ucp')
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchycontent.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/package/pkgcontent.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_content.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchycontent.cxx b/ucb/source/ucp/hierarchy/hierarchycontent.cxx index b3f5366377fd..61a495267814 100644 --- a/ucb/source/ucp/hierarchy/hierarchycontent.cxx +++ b/ucb/source/ucp/hierarchy/hierarchycontent.cxx @@ -91,7 +91,7 @@ rtl::Reference<HierarchyContent> HierarchyContent::create( if ( !loadData( rxContext, pProvider, Identifier, aProps ) ) return nullptr; - return new HierarchyContent( rxContext, pProvider, Identifier, aProps ); + return new HierarchyContent( rxContext, pProvider, Identifier, std::move(aProps) ); } diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx index 6e9961019e15..8bf7e4bc2873 100644 --- a/ucb/source/ucp/package/pkgcontent.cxx +++ b/ucb/source/ucp/package/pkgcontent.cxx @@ -169,7 +169,7 @@ rtl::Reference<Content> Content::create( uno::Reference< ucb::XContentIdentifier > xId = new ::ucbhelper::ContentIdentifier( aURI.getUri() ); - return new Content( rxContext, pProvider, xId, xPackage, aURI, aProps ); + return new Content( rxContext, pProvider, xId, xPackage, aURI, std::move(aProps) ); } else { @@ -218,7 +218,7 @@ rtl::Reference<Content> Content::create( uno::Reference< ucb::XContentIdentifier > xId = new ::ucbhelper::ContentIdentifier( aURI.getUri() ); - return new Content( rxContext, pProvider, xId, xPackage, aURI, Info ); + return new Content( rxContext, pProvider, xId, xPackage, std::move(aURI), Info ); } diff --git a/ucb/source/ucp/tdoc/tdoc_content.cxx b/ucb/source/ucp/tdoc/tdoc_content.cxx index ea695c7b0dbb..b956695eab75 100644 --- a/ucb/source/ucp/tdoc/tdoc_content.cxx +++ b/ucb/source/ucp/tdoc/tdoc_content.cxx @@ -117,7 +117,7 @@ rtl::Reference<Content> Content::create( aProps ) ) return nullptr; - return new Content( rxContext, pProvider, Identifier, aProps ); + return new Content( rxContext, pProvider, Identifier, std::move(aProps) ); } |