From 6c3dca1f7181d7a171b7eaaa51fe4c0c1af40f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= Date: Fri, 4 Feb 2011 11:53:42 +0100 Subject: No resize for boot::unordered_map. --- unotools/source/config/cmdoptions.cxx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/unotools/source/config/cmdoptions.cxx b/unotools/source/config/cmdoptions.cxx index 84a48390780d..18662c4e90c0 100644 --- a/unotools/source/config/cmdoptions.cxx +++ b/unotools/source/config/cmdoptions.cxx @@ -105,11 +105,6 @@ class SvtCmdOptions return ( m_aCommandHashMap.size() > 0 ); } - void SetContainerSize( sal_Int32 nSize ) - { - m_aCommandHashMap.resize( nSize ); - } - sal_Bool Lookup( const OUString& aCmd ) const { CommandHashMap::const_iterator pEntry = m_aCommandHashMap.find( aCmd ); @@ -292,9 +287,6 @@ SvtCommandOptions_Impl::SvtCommandOptions_Impl() sal_Int32 nItem = 0 ; OUString sCmd ; - // Set size of boost::unordered_map reach a used size of approx. 60% - m_aDisabledCommands.SetContainerSize( lNames.getLength() * 10 / 6 ); - // Get names/values for disabled commands. for( nItem=0; nItem < lNames.getLength(); ++nItem ) { @@ -343,9 +335,7 @@ void SvtCommandOptions_Impl::Notify( const Sequence< OUString >& ) sal_Int32 nItem = 0 ; OUString sCmd ; - // Set size of boost::unordered_map reach a used size of approx. 60% m_aDisabledCommands.Clear(); - m_aDisabledCommands.SetContainerSize( lNames.getLength() * 10 / 6 ); // Get names/values for disabled commands. for( nItem=0; nItem < lNames.getLength(); ++nItem ) -- cgit v1.2.1