diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-02-04 11:53:42 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-02-04 11:53:42 +0100 |
commit | 6c3dca1f7181d7a171b7eaaa51fe4c0c1af40f94 (patch) | |
tree | a4ff8e48ed477b91059e0f627da2ecf45d9a010c /unotools | |
parent | 580ef36b0395c01eadc4e1cd5db506821f761c33 (diff) |
No resize for boot::unordered_map.
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/cmdoptions.cxx | 10 |
1 files changed, 0 insertions, 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 ) |