From e99fcbe58ef7533da06ee4658a4ee2cde4df58ea Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 3 Feb 2011 16:55:17 -0700 Subject: Bulk move libs-gui to boost unordered containers --- rsc/source/parser/rscibas.cxx | 4 ++-- rsc/source/parser/rsclex.cxx | 2 +- rsc/source/parser/rsclex.hxx | 4 ++-- rsc/source/tools/rschash.cxx | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'rsc/source') diff --git a/rsc/source/parser/rscibas.cxx b/rsc/source/parser/rscibas.cxx index bead981bd1f2..1acd8abc3bf8 100644 --- a/rsc/source/parser/rscibas.cxx +++ b/rsc/source/parser/rscibas.cxx @@ -50,7 +50,7 @@ #include "rsclex.hxx" #include -#include +#include /****************** M A C R O S ******************************************/ void RscTypCont::SETCONST( RscConst * pClass, const char * szString, UINT32 nVal ) @@ -78,7 +78,7 @@ void RscTypCont::SETCONST( RscConst * pClass, Atom nName, UINT32 nVal ) |* Beschreibung *************************************************************************/ -typedef std::hash_map< rtl::OString, sal_uInt32, rtl::OStringHash > langmap; +typedef boost::unordered_map< rtl::OString, sal_uInt32, rtl::OStringHash > langmap; static langmap ULong_Iso_map; sal_uInt32 GetLangId( const ByteString& aLang ) diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx index 690a275be903..345780516d61 100644 --- a/rsc/source/parser/rsclex.cxx +++ b/rsc/source/parser/rsclex.cxx @@ -56,7 +56,7 @@ const char* StringContainer::putString( const char* pString ) { OString aString( static_cast(pString) ); std::pair< - std::hash_set< OString, OStringHash >::iterator, + boost::unordered_set< OString, OStringHash >::iterator, bool > aInsert = m_aStrings.insert( aString ); diff --git a/rsc/source/parser/rsclex.hxx b/rsc/source/parser/rsclex.hxx index 06b2cb4d27ed..a6b0bf6c4813 100644 --- a/rsc/source/parser/rsclex.hxx +++ b/rsc/source/parser/rsclex.hxx @@ -27,14 +27,14 @@ ************************************************************************/ #include -#include +#include #include #include // a buffer for unique strings class StringContainer { - std::hash_set< rtl::OString, rtl::OStringHash > m_aStrings; + boost::unordered_set< rtl::OString, rtl::OStringHash > m_aStrings; public: StringContainer() {} ~StringContainer() {} diff --git a/rsc/source/tools/rschash.cxx b/rsc/source/tools/rschash.cxx index ad496dfb3753..2acf6f15e376 100644 --- a/rsc/source/tools/rschash.cxx +++ b/rsc/source/tools/rschash.cxx @@ -46,7 +46,7 @@ AtomContainer::~AtomContainer() Atom AtomContainer::getID( const OString& rStr, bool bOnlyIfExists ) { OString aKey = rStr.toAsciiLowerCase(); - std::hash_map< OString, Atom, OStringHash >::const_iterator it = + boost::unordered_map< OString, Atom, OStringHash >::const_iterator it = m_aStringToID.find( aKey ); if( it != m_aStringToID.end() ) return it->second; @@ -63,7 +63,7 @@ Atom AtomContainer::getID( const OString& rStr, bool bOnlyIfExists ) const OString& AtomContainer::getString( Atom nAtom ) { - std::hash_map< Atom, OString >::const_iterator it = + boost::unordered_map< Atom, OString >::const_iterator it = m_aIDToString.find( nAtom ); return (it != m_aIDToString.end()) ? it->second : m_aIDToString[0]; } -- cgit