forms/source/component/ListBox.cxx | 8 ++++---- forms/source/component/ListBox.hxx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)
New commits: commit 1c46d2cabfa9cffd65599e55ca4060e39dcbad62 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Mon Oct 11 16:09:21 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Oct 11 21:06:44 2021 +0200 loplugin:moveparam in forms Change-Id: Ib3a6058e933eb7030cd6d7aef335f12fbd4e6bd3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123417 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> 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;