diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-10 17:31:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-10 19:45:23 +0200 |
commit | 6af0da482d8d387f181cb9c2cf9301859c9683cb (patch) | |
tree | dadc25d2fb7aaa50e0a0e379d43070e9f7e61553 /svx | |
parent | e3fc69457d6b43f88c7540b39564a914648e7f3f (diff) |
loplugin:moveparam in editeng
Change-Id: I08aed09b0acd283d700bdf75f650e93dba7c7b85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123341
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/accessibility/AccessibleTextHelper.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/accessibility/AccessibleTextHelper.cxx b/svx/source/accessibility/AccessibleTextHelper.cxx index 5a6a5397ca00..046fec99224b 100644 --- a/svx/source/accessibility/AccessibleTextHelper.cxx +++ b/svx/source/accessibility/AccessibleTextHelper.cxx @@ -122,7 +122,7 @@ namespace accessibility return mnStartIndex; } - void SetAdditionalChildStates( const VectorOfStates& rChildStates ); + void SetAdditionalChildStates( VectorOfStates&& rChildStates ); void Dispose(); @@ -350,9 +350,9 @@ namespace accessibility } } - void AccessibleTextHelper_Impl::SetAdditionalChildStates( const VectorOfStates& rChildStates ) + void AccessibleTextHelper_Impl::SetAdditionalChildStates( VectorOfStates&& rChildStates ) { - maParaManager.SetAdditionalChildStates( rChildStates ); + maParaManager.SetAdditionalChildStates( std::move(rChildStates) ); } void AccessibleTextHelper_Impl::SetChildFocus( sal_Int32 nChild, bool bHaveFocus ) @@ -1644,9 +1644,9 @@ namespace accessibility #endif } - void AccessibleTextHelper::SetAdditionalChildStates( const VectorOfStates& rChildStates ) + void AccessibleTextHelper::SetAdditionalChildStates( VectorOfStates&& rChildStates ) { - mpImpl->SetAdditionalChildStates( rChildStates ); + mpImpl->SetAdditionalChildStates( std::move(rChildStates) ); } void AccessibleTextHelper::UpdateChildren() |