diff options
Diffstat (limited to 'framework/source/accelerators/acceleratorconfiguration.cxx')
-rw-r--r-- | framework/source/accelerators/acceleratorconfiguration.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/source/accelerators/acceleratorconfiguration.cxx b/framework/source/accelerators/acceleratorconfiguration.cxx index e5f5cc3b80b5..0d931fbc0f66 100644 --- a/framework/source/accelerators/acceleratorconfiguration.cxx +++ b/framework/source/accelerators/acceleratorconfiguration.cxx @@ -989,7 +989,8 @@ void XCUBasedAcceleratorConfiguration::impl_ts_load( bool bPreferred, const css: css::uno::Sequence< OUString > lLocales = xCommand->getElementNames(); sal_Int32 nLocales = lLocales.getLength(); ::std::vector< OUString > aLocales; - for ( sal_Int32 j=0; j<nLocales; ++j ) + aLocales.reserve(nLocales); + for (sal_Int32 j = 0; j < nLocales; ++j) aLocales.push_back(lLocales[j]); OUString sLocale; |