diff options
Diffstat (limited to 'framework/source/fwe/helper/configimporter.cxx')
-rw-r--r-- | framework/source/fwe/helper/configimporter.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/source/fwe/helper/configimporter.cxx b/framework/source/fwe/helper/configimporter.cxx index e1306991259d..27c98497550a 100644 --- a/framework/source/fwe/helper/configimporter.cxx +++ b/framework/source/fwe/helper/configimporter.cxx @@ -30,7 +30,7 @@ namespace framework bool UIConfigurationImporterOOo1x::ImportCustomToolbars( const uno::Reference< ui::XUIConfigurationManager2 >& rContainerFactory, - uno::Sequence< uno::Reference< container::XIndexContainer > >& rSeqContainer, + std::vector< uno::Reference< container::XIndexContainer > >& rSeqContainer, const uno::Reference< uno::XComponentContext >& rxContext, const uno::Reference< embed::XStorage >& rToolbarStorage ) { @@ -57,9 +57,7 @@ bool UIConfigurationImporterOOo1x::ImportCustomToolbars( uno::Reference< container::XIndexContainer > xContainer = rContainerFactory->createSettings(); if ( ToolBoxConfiguration::LoadToolBox( rxContext, xInputStream, xContainer )) { - sal_uInt32 nIndex = rSeqContainer.getLength(); - rSeqContainer.realloc( nIndex+1 ); - rSeqContainer[nIndex] = xContainer; + rSeqContainer.push_back( xContainer ); bResult = true; } } |