summaryrefslogtreecommitdiff
path: root/rsc/source
diff options
context:
space:
mode:
authorFridrich Strba <fridrich.strba@bluewin.ch>2011-02-03 16:55:17 -0700
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-02-04 01:10:15 +0100
commite99fcbe58ef7533da06ee4658a4ee2cde4df58ea (patch)
tree2dffe52eb92af74244d25f19613b1af187d9eab7 /rsc/source
parentfad7c8f3e0d0518b1a6411d53d5d0a3a43adf119 (diff)
Bulk move libs-gui to boost unordered containers
Diffstat (limited to 'rsc/source')
-rw-r--r--rsc/source/parser/rscibas.cxx4
-rw-r--r--rsc/source/parser/rsclex.cxx2
-rw-r--r--rsc/source/parser/rsclex.hxx4
-rw-r--r--rsc/source/tools/rschash.cxx4
4 files changed, 7 insertions, 7 deletions
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 <yyrscyacc.hxx>
-#include <hash_map>
+#include <boost/unordered_map.hpp>
/****************** 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<const sal_Char*>(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 <tools/stack.hxx>
-#include <hash_set>
+#include <boost/unordered_set.hpp>
#include <rtl/strbuf.hxx>
#include <rtl/string.hxx>
// 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];
}