diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-11 16:09:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-11 21:06:44 +0200 |
commit | 1c46d2cabfa9cffd65599e55ca4060e39dcbad62 (patch) | |
tree | 10d539fe73028ff4b66972d3f3cc14b890f07e2e /forms/source | |
parent | 7a6bd120d8a09e6289ea372935cca40635b99b2e (diff) |
loplugin:moveparam in forms
Change-Id: Ib3a6058e933eb7030cd6d7aef335f12fbd4e6bd3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123417
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/component/ListBox.cxx | 8 | ||||
-rw-r--r-- | forms/source/component/ListBox.hxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index a67249097d7d..91a22ea4ef3d 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -321,7 +321,7 @@ namespace frm // propagate if ( m_eListSourceType == ListSourceType_VALUELIST ) { - setBoundValues(m_aListSourceValues); + setBoundValues(std::vector(m_aListSourceValues)); } else { @@ -1000,7 +1000,7 @@ namespace frm m_nNULLPos = 0; } - setBoundValues(aValueList); + setBoundValues(std::move(aValueList)); setFastPropertyValue( PROPERTY_ID_STRINGITEMLIST, makeAny( lcl_convertToStringSequence( aDisplayList ) ) ); setFastPropertyValue( PROPERTY_ID_TYPEDITEMLIST, makeAny( css::uno::Sequence<css::uno::Any>() ) ); @@ -1037,10 +1037,10 @@ namespace frm } - void OListBoxModel::setBoundValues(const ValueList &l) + void OListBoxModel::setBoundValues(ValueList && l) { m_aConvertedBoundValues.clear(); - m_aBoundValues = l; + m_aBoundValues = std::move(l); } diff --git a/forms/source/component/ListBox.hxx b/forms/source/component/ListBox.hxx index 046717202b2e..b4b51d4d8ce0 100644 --- a/forms/source/component/ListBox.hxx +++ b/forms/source/component/ListBox.hxx @@ -214,7 +214,7 @@ private: */ void impl_refreshDbEntryList( bool _bForce ); - void setBoundValues(const ValueList&); + void setBoundValues(ValueList &&); void clearBoundValues(); ValueList impl_getValues() const; |