summaryrefslogtreecommitdiff
path: root/framework/source/helper/ocomponentenumeration.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 16:10:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 18:36:53 +0200
commit8a499b4364dfdf3f921c9ea0cca71dd7bca32cb4 (patch)
treeb36197222abce72741ccc6b0da4b38beebdf332f /framework/source/helper/ocomponentenumeration.cxx
parent0eb51b92e0c528b2b5c1f0d8011b70c808c81605 (diff)
loplugin:moveparam in framework
Change-Id: I423fa6a4f4fea5a27ec69f65dac952eff42d3d99 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123418 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/helper/ocomponentenumeration.cxx')
-rw-r--r--framework/source/helper/ocomponentenumeration.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/helper/ocomponentenumeration.cxx b/framework/source/helper/ocomponentenumeration.cxx
index 2a06c558c3e4..3d00f75e56c0 100644
--- a/framework/source/helper/ocomponentenumeration.cxx
+++ b/framework/source/helper/ocomponentenumeration.cxx
@@ -32,9 +32,9 @@ using namespace ::osl;
// constructor
-OComponentEnumeration::OComponentEnumeration( const std::vector< css::uno::Reference< XComponent > >& seqComponents )
+OComponentEnumeration::OComponentEnumeration( std::vector< css::uno::Reference< XComponent > >&& seqComponents )
: m_nPosition ( 0 ) // 0 is the first position for a valid list and the right value for an invalid list to!
- , m_seqComponents ( seqComponents )
+ , m_seqComponents ( std::move(seqComponents) )
{}
// destructor