summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-19 09:14:59 +0200
committerNoel Grandin <noel@peralex.com>2015-11-19 09:33:29 +0200
commit2554efabb6d7cd2ad9f7cfdddd0712c25cdca1cd (patch)
tree1b8fd3940910ffcd328e16a53e208c099f67ab21 /vcl
parentf7b5f477bfd942e0a1d8880c372635000d724dd7 (diff)
use comphelper::containerToSequence
in chart2, we remove a local equivalent of the method Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/kde/UnxCommandThread.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/vcl/unx/kde/UnxCommandThread.cxx b/vcl/unx/kde/UnxCommandThread.cxx
index df3a01499b42..c5d313c91d57 100644
--- a/vcl/unx/kde/UnxCommandThread.cxx
+++ b/vcl/unx/kde/UnxCommandThread.cxx
@@ -26,6 +26,7 @@
#include <unistd.h>
#include <string.h>
#include <iostream>
+#include <comphelper/sequence.hxx>
using namespace ::com::sun::star;
@@ -268,12 +269,7 @@ void SAL_CALL UnxFilePickerCommandThread::handleCommand( const OUString &rComman
}
else if ( aType == "stringList" )
{
- uno::Sequence< OUString > aSequence( aList.size() );
- sal_Int32 nIdx = 0;
- for ( ::std::list< OUString >::const_iterator it = aList.begin(); it != aList.end(); ++it, ++nIdx )
- aSequence[nIdx] = (*it);
-
- m_aGetValue <<= aSequence;
+ m_aGetValue <<= comphelper::containerToSequence<OUString>(aList);
m_aGetValueCondition.set();
}
else