diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-10 19:59:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-10 21:03:18 +0200 |
commit | f67392948d625db9ce115092e4c9bfd301268a25 (patch) | |
tree | 0bd1490ad019c3c172229e8990c62262c3f557fe /xmloff/source/style/xmlaustp.cxx | |
parent | 210bbdead214531172d74d0d2975f47cf973bc69 (diff) |
loplugin:moveparam in xmloff
Change-Id: I46c1c8dc46cd2b8470b69506f6609f8bd7e42211
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123347
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/style/xmlaustp.cxx')
-rw-r--r-- | xmloff/source/style/xmlaustp.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xmloff/source/style/xmlaustp.cxx b/xmloff/source/style/xmlaustp.cxx index d274884a7848..859477250ece 100644 --- a/xmloff/source/style/xmlaustp.cxx +++ b/xmloff/source/style/xmlaustp.cxx @@ -331,32 +331,32 @@ void SvXMLAutoStylePoolP::RegisterNames( } OUString SvXMLAutoStylePoolP::Add( XmlStyleFamily nFamily, - const vector< XMLPropertyState >& rProperties ) + vector< XMLPropertyState >&& rProperties ) { OUString sName; - pImpl->Add(sName, nFamily, "", rProperties ); + pImpl->Add(sName, nFamily, "", std::move(rProperties) ); return sName; } OUString SvXMLAutoStylePoolP::Add( XmlStyleFamily nFamily, const OUString& rParent, - const vector< XMLPropertyState >& rProperties, bool bDontSeek ) + vector< XMLPropertyState >&& rProperties, bool bDontSeek ) { OUString sName; - pImpl->Add(sName, nFamily, rParent, rProperties, bDontSeek); + pImpl->Add(sName, nFamily, rParent, std::move(rProperties), bDontSeek); return sName; } -bool SvXMLAutoStylePoolP::Add(OUString& rName, XmlStyleFamily nFamily, const OUString& rParent, const ::std::vector< XMLPropertyState >& rProperties ) +bool SvXMLAutoStylePoolP::Add(OUString& rName, XmlStyleFamily nFamily, const OUString& rParent, ::std::vector< XMLPropertyState >&& rProperties ) { - return pImpl->Add(rName, nFamily, rParent, rProperties); + return pImpl->Add(rName, nFamily, rParent, std::move(rProperties)); } bool SvXMLAutoStylePoolP::AddNamed( const OUString& rName, XmlStyleFamily nFamily, const OUString& rParent, - const ::std::vector< XMLPropertyState >& rProperties ) + std::vector< XMLPropertyState >&& rProperties ) { - return pImpl->AddNamed(rName, nFamily, rParent, rProperties); + return pImpl->AddNamed(rName, nFamily, rParent, std::move(rProperties)); } OUString SvXMLAutoStylePoolP::Find( XmlStyleFamily nFamily, |