diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-11 14:31:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-11 16:11:47 +0200 |
commit | 126510981b3a71bf0e73551938c483f14281d3c4 (patch) | |
tree | cbbe84726bd3e9b25f164af56cb00d9738f99863 /sd/source/ui/framework | |
parent | f477b54e01766fabc0179beec9aa3dc31b5824e2 (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.cxx | 6 |
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 ------------------------------------------------------- |