summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 14:31:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 16:11:47 +0200
commit126510981b3a71bf0e73551938c483f14281d3c4 (patch)
treecbbe84726bd3e9b25f164af56cb00d9738f99863 /sd/source/ui/framework
parentf477b54e01766fabc0179beec9aa3dc31b5824e2 (diff)
loplugin:moveparam in sd
Change-Id: Ia29e29d9af21dbd9bfb846db03f0100832835352 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123390 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/framework')
-rw-r--r--sd/source/ui/framework/configuration/ResourceId.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/framework/configuration/ResourceId.cxx b/sd/source/ui/framework/configuration/ResourceId.cxx
index d8dd98d9f06c..48a6d360f5f2 100644
--- a/sd/source/ui/framework/configuration/ResourceId.cxx
+++ b/sd/source/ui/framework/configuration/ResourceId.cxx
@@ -52,8 +52,8 @@ ResourceId::ResourceId()
}
ResourceId::ResourceId (
- const std::vector<OUString>& rResourceURLs)
- : maResourceURLs(rResourceURLs)
+ std::vector<OUString>&& rResourceURLs)
+ : maResourceURLs(std::move(rResourceURLs))
{
ParseResourceURL();
}
@@ -342,7 +342,7 @@ sal_Bool SAL_CALL
Reference<XResourceId> SAL_CALL
ResourceId::clone()
{
- return new ResourceId(maResourceURLs);
+ return new ResourceId(std::vector(maResourceURLs));
}
//----- XInitialization -------------------------------------------------------