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 /include | |
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 'include')
-rw-r--r-- | include/xmloff/xmlaustp.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xmloff/xmlaustp.hxx b/include/xmloff/xmlaustp.hxx index 1adc3b786a91..11f6cfc46923 100644 --- a/include/xmloff/xmlaustp.hxx +++ b/include/xmloff/xmlaustp.hxx @@ -117,7 +117,7 @@ public: /// Add an item set with a pre-defined name (needed for saving sheets separately in Calc). bool AddNamed( const OUString& rName, XmlStyleFamily nFamily, const OUString& rParent, - std::vector< XMLPropertyState >&& rProperties ); + std::vector< XMLPropertyState > aProperties ); /// Find an item set's name. OUString Find( XmlStyleFamily nFamily, const OUString& rParent, const ::std::vector< XMLPropertyState >& rProperties ) const; |