diff options
author | Noel Grandin <noel@peralex.com> | 2015-12-03 11:27:37 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-12-03 13:57:23 +0200 |
commit | ea297dd2020c03673745428381e8a2b11b83f23b (patch) | |
tree | 9034b05687a03d22c50b65f783e4f8cb428f47c6 /forms | |
parent | 2a9adf0288048fdaad21a1d0ab32e1e86e9577ac (diff) |
use comphelper::containerToSequence()
Change-Id: Ic4d3bcec7bda300bca6911a7472cafafdf12f5bd
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/ListBox.cxx | 8 |
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; |