diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-31 11:31:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-01 10:35:19 +0200 |
commit | c9c68f0ddb6625fd86a6e172e15d1c943bb81911 (patch) | |
tree | 9611a577604336c0fb55f52c393a31080e0fa29c /xmloff/source | |
parent | 6917a939cc656aaafb643627685b155d60f0399f (diff) |
cid#1500508 Using a moved object
regression from
commit f67392948d625db9ce115092e4c9bfd301268a25
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Sun Oct 10 19:59:23 2021 +0200
loplugin:moveparam in xmloff
And change the AddNamed method otherwise the unnecessarycast
loplugin will trigger.
Change-Id: I58ded1379a6e5179f1065d68d7c2e9b812aa91ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139091
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/style/xmlaustp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/style/xmlaustp.cxx b/xmloff/source/style/xmlaustp.cxx index 859477250ece..47a36932f028 100644 --- a/xmloff/source/style/xmlaustp.cxx +++ b/xmloff/source/style/xmlaustp.cxx @@ -353,7 +353,7 @@ bool SvXMLAutoStylePoolP::Add(OUString& rName, XmlStyleFamily nFamily, const OUS } bool SvXMLAutoStylePoolP::AddNamed( const OUString& rName, XmlStyleFamily nFamily, const OUString& rParent, - std::vector< XMLPropertyState >&& rProperties ) + std::vector< XMLPropertyState > rProperties ) { return pImpl->AddNamed(rName, nFamily, rParent, std::move(rProperties)); |