diff options
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/misc.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx index e21de4970bec..1bf297d4589e 100644 --- a/linguistic/source/misc.cxx +++ b/linguistic/source/misc.cxx @@ -384,7 +384,8 @@ std::vector< LanguageType > sal_Int32 nCount = rLocaleSeq.getLength(); std::vector< LanguageType > aLangs; - for (sal_Int32 i = 0; i < nCount; ++i) + aLangs.reserve(nCount); + for (sal_Int32 i = 0; i < nCount; ++i) { aLangs.push_back( LinguLocaleToLanguage( pLocale[i] ) ); } |