diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-11 21:12:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-12 08:30:29 +0200 |
commit | e4913a56c07914708d8272ae211e23b73349e673 (patch) | |
tree | 25010a72020dcc9b8f1bcd797db4e66ae9f2c13d /toolkit | |
parent | 2c596b694a641de1b18afb1e9a5b843df638af24 (diff) |
loplugin:moveparam in various
Change-Id: I522d03ffdaafcfe364425b4135249492879e3d5b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123429
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/unocontrols.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx index 3cb577d85392..0107262bf5b9 100644 --- a/toolkit/source/controls/unocontrols.cxx +++ b/toolkit/source/controls/unocontrols.cxx @@ -1998,9 +1998,9 @@ struct UnoControlListBoxModel_Data m_aListItems = i_copySource.m_aListItems; } - void setAllItems( const ::std::vector< ListItem >& i_rItems ) + void setAllItems( ::std::vector< ListItem >&& i_rItems ) { - m_aListItems = i_rItems; + m_aListItems = std::move(i_rItems); } void removeItem( const sal_Int32 i_nIndex ) @@ -2130,7 +2130,7 @@ void SAL_CALL UnoControlListBoxModel::setFastPropertyValue_NoBroadcast( sal_Int3 aItems.begin(), CreateListItem() ); - m_xData->setAllItems( aItems ); + m_xData->setAllItems( std::move(aItems) ); // since an XItemListListener does not have a "all items modified" or some such method, // we simulate this by notifying removal of all items, followed by insertion of all new @@ -2937,7 +2937,7 @@ void SAL_CALL UnoControlComboBoxModel::setFastPropertyValue_NoBroadcast( sal_Int aItems.begin(), CreateListItem() ); - m_xData->setAllItems( aItems ); + m_xData->setAllItems( std::move(aItems) ); // since an XItemListListener does not have a "all items modified" or some such method, // we simulate this by notifying removal of all items, followed by insertion of all new |