diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-01 19:58:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-02 16:14:36 +0000 |
commit | fd1372ba8b1c3eb3c7fad6d9c623176c8071f31b (patch) | |
tree | 448f0d04f780007b3eeeb76b7c4c8c54cbfd6d9b /rsc | |
parent | c48b928acab9f226ad5ad816fe773c21051431e8 (diff) |
boost::unordered_map->std::unordered_map
you can get debug stl this way
Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/inc/rschash.hxx | 6 | ||||
-rw-r--r-- | rsc/inc/rsclex.hxx | 4 | ||||
-rw-r--r-- | rsc/source/parser/rscibas.cxx | 4 | ||||
-rw-r--r-- | rsc/source/parser/rsclex.cxx | 2 | ||||
-rw-r--r-- | rsc/source/tools/rschash.cxx | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/rsc/inc/rschash.hxx b/rsc/inc/rschash.hxx index 9eced4737414..898969e7c14c 100644 --- a/rsc/inc/rschash.hxx +++ b/rsc/inc/rschash.hxx @@ -21,7 +21,7 @@ #include <sal/types.h> #include <rtl/string.hxx> -#include <boost/unordered_map.hpp> +#include <unordered_map> typedef sal_uInt32 Atom; @@ -30,8 +30,8 @@ typedef sal_uInt32 Atom; class AtomContainer { Atom m_nNextID; - boost::unordered_map< OString, Atom, OStringHash > m_aStringToID; - boost::unordered_map< Atom, OString > m_aIDToString; + std::unordered_map< OString, Atom, OStringHash > m_aStringToID; + std::unordered_map< Atom, OString > m_aIDToString; public: AtomContainer(); diff --git a/rsc/inc/rsclex.hxx b/rsc/inc/rsclex.hxx index 46cd468a7d84..70fda227f10f 100644 --- a/rsc/inc/rsclex.hxx +++ b/rsc/inc/rsclex.hxx @@ -20,14 +20,14 @@ #ifndef INCLUDED_RSC_INC_RSCLEX_HXX #define INCLUDED_RSC_INC_RSCLEX_HXX -#include <boost/unordered_set.hpp> #include <rtl/strbuf.hxx> #include <rtl/string.hxx> +#include <unordered_set> // a buffer for unique strings class StringContainer { - boost::unordered_set< OString, OStringHash > m_aStrings; + std::unordered_set< OString, OStringHash > m_aStrings; public: StringContainer() {} ~StringContainer() {} diff --git a/rsc/source/parser/rscibas.cxx b/rsc/source/parser/rscibas.cxx index 92babd05fd3a..3836b4748d3e 100644 --- a/rsc/source/parser/rscibas.cxx +++ b/rsc/source/parser/rscibas.cxx @@ -43,7 +43,7 @@ #include <rsclex.hxx> #include <rscyacc.hxx> -#include <boost/unordered_map.hpp> +#include <unordered_map> void RscTypCont::SETCONST( RscConst * pClass, const char * szString, sal_uInt32 nVal ) { @@ -64,7 +64,7 @@ void RscTypCont::SETCONST( RscConst * pClass, Atom nName, sal_uInt32 nVal ) } -typedef boost::unordered_map< OString, sal_uInt32, OStringHash > langmap; +typedef std::unordered_map< OString, sal_uInt32, OStringHash > langmap; static langmap ULong_Iso_map; sal_uInt32 GetLangId(const OString &rLang) diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx index 858ee84a0e17..c5d3a195e646 100644 --- a/rsc/source/parser/rsclex.cxx +++ b/rsc/source/parser/rsclex.cxx @@ -42,7 +42,7 @@ const char* StringContainer::putString( const char* pString ) { OString aString( static_cast<const sal_Char*>(pString) ); std::pair< - boost::unordered_set< OString, OStringHash >::iterator, + std::unordered_set< OString, OStringHash >::iterator, bool > aInsert = m_aStrings.insert( aString ); diff --git a/rsc/source/tools/rschash.cxx b/rsc/source/tools/rschash.cxx index 005c058916c0..65388ec91ca2 100644 --- a/rsc/source/tools/rschash.cxx +++ b/rsc/source/tools/rschash.cxx @@ -34,7 +34,7 @@ AtomContainer::~AtomContainer() Atom AtomContainer::getID( const OString& rStr, bool bOnlyIfExists ) { OString aKey = rStr.toAsciiLowerCase(); - boost::unordered_map< OString, Atom, OStringHash >::const_iterator it = + std::unordered_map< OString, Atom, OStringHash >::const_iterator it = m_aStringToID.find( aKey ); if( it != m_aStringToID.end() ) return it->second; @@ -51,7 +51,7 @@ Atom AtomContainer::getID( const OString& rStr, bool bOnlyIfExists ) const OString& AtomContainer::getString( Atom nAtom ) { - boost::unordered_map< Atom, OString >::const_iterator it = + std::unordered_map< Atom, OString >::const_iterator it = m_aIDToString.find( nAtom ); return (it != m_aIDToString.end()) ? it->second : m_aIDToString[0]; } |