diff options
Diffstat (limited to 'framework/source/fwi/classes/converter.cxx')
-rw-r--r-- | framework/source/fwi/classes/converter.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/source/fwi/classes/converter.cxx b/framework/source/fwi/classes/converter.cxx index b25f35e797c6..33af820202c9 100644 --- a/framework/source/fwi/classes/converter.cxx +++ b/framework/source/fwi/classes/converter.cxx @@ -45,7 +45,8 @@ std::vector<OUString> Converter::convert_seqOUString2OUStringList( const css::un std::vector<OUString> lDestination; sal_Int32 nCount = lSource.getLength(); - for (sal_Int32 nItem=0; nItem<nCount; ++nItem ) + lDestination.reserve(nCount); + for (sal_Int32 nItem = 0; nItem < nCount; ++nItem) { lDestination.push_back(lSource[nItem]); } |