From fe3fd05966a668c1cdf53e8221b8614e9a07de65 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 19 Nov 2015 13:43:23 +0200 Subject: add mapKeysToSequence/mapValuesToSequence methods to comphelper and use them Change-Id: If4dc9df63db37185228aeaaab2979498d61304ec Reviewed-on: https://gerrit.libreoffice.org/20055 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/dialog/filtergrouping.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/dialog/filtergrouping.cxx b/sfx2/source/dialog/filtergrouping.cxx index c9a3d4310c1a..61af42268231 100644 --- a/sfx2/source/dialog/filtergrouping.cxx +++ b/sfx2/source/dialog/filtergrouping.cxx @@ -31,6 +31,7 @@ #include #include #include +#include #include #include @@ -825,12 +826,7 @@ namespace sfx2 // create a representation of the group which is understandable by the XFilterGroupManager if ( _rGroup.size() ) { - Sequence< StringPair > aFilters( _rGroup.size() ); - ::std::copy( - _rGroup.begin(), - _rGroup.end(), - aFilters.getArray() - ); + Sequence< StringPair > aFilters( comphelper::containerToSequence(_rGroup) ); if ( _bAddExtension ) { StringPair* pFilters = aFilters.getArray(); -- cgit