summaryrefslogtreecommitdiffstats
path: root/forms/source/component/ListBox.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-03 11:27:37 +0200
committerNoel Grandin <noel@peralex.com>2015-12-03 13:57:23 +0200
commitea297dd2020c03673745428381e8a2b11b83f23b (patch)
tree9034b05687a03d22c50b65f783e4f8cb428f47c6 /forms/source/component/ListBox.cxx
parentuno::Sequence->std::vector (diff)
downloadcore-ea297dd2020c03673745428381e8a2b11b83f23b.tar.gz
core-ea297dd2020c03673745428381e8a2b11b83f23b.zip
use comphelper::containerToSequence()
Change-Id: Ic4d3bcec7bda300bca6911a7472cafafdf12f5bd
Diffstat (limited to 'forms/source/component/ListBox.cxx')
-rw-r--r--forms/source/component/ListBox.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index a777b255cf41..af6a40ed127e 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -44,6 +44,7 @@
#include <comphelper/numbers.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/listenernotification.hxx>
+#include <comphelper/sequence.hxx>
#include <connectivity/dbtools.hxx>
#include <connectivity/formattedcolumnvalue.hxx>
#include <connectivity/dbconversion.hxx>
@@ -1402,12 +1403,7 @@ namespace frm
}
// copy the indexes to the sequence
- aSelectIndexes.realloc( aSelectionSet.size() );
- ::std::copy(
- aSelectionSet.begin(),
- aSelectionSet.end(),
- aSelectIndexes.getArray()
- );
+ aSelectIndexes = comphelper::containerToSequence<sal_Int16>( aSelectionSet );
}
break;