diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-02-05 13:18:52 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-02-05 13:18:52 +0100 |
commit | bb564bec137f76dfa099a1cdda3cf39367a6fe50 (patch) | |
tree | e444279823cc1fc9dd07196ea8008720db49248a /xmlhelp/source | |
parent | 5ace73b0896ce36a1ea86fb1c3cb9040f12a3e17 (diff) |
migrate to use boost unordered containers
Diffstat (limited to 'xmlhelp/source')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.hxx | 20 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/db.hxx | 6 |
2 files changed, 13 insertions, 13 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.hxx b/xmlhelp/source/cxxhelp/provider/databases.hxx index bbd050177a79..c9708fbaca9f 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.hxx +++ b/xmlhelp/source/cxxhelp/provider/databases.hxx @@ -37,8 +37,8 @@ #include <vector> #define INCLUDED_STL_VECTOR #endif -#include <hash_map> -#include <hash_set> +#include <boost/unordered_map.hpp> +#include <boost/unordered_set.hpp> #include <osl/mutex.hxx> #include <rtl/ustring.hxx> #include <rtl/string.hxx> @@ -335,20 +335,20 @@ namespace chelp { std::vector< rtl::OUString > m_avModules; - typedef std::hash_map< rtl::OUString,berkeleydbproxy::Db*,ha,eq > DatabasesTable; + typedef boost::unordered_map< rtl::OUString,berkeleydbproxy::Db*,ha,eq > DatabasesTable; DatabasesTable m_aDatabases; // Language and module dependent databases - typedef std::hash_map< rtl::OUString,rtl::OUString,ha,eq > LangSetTable; + typedef boost::unordered_map< rtl::OUString,rtl::OUString,ha,eq > LangSetTable; LangSetTable m_aLangSet; // Mapping to of lang-country to lang - typedef std::hash_map< rtl::OUString,StaticModuleInformation*,ha,eq > ModInfoTable; + typedef boost::unordered_map< rtl::OUString,StaticModuleInformation*,ha,eq > ModInfoTable; ModInfoTable m_aModInfo; // Module information - typedef std::hash_map< rtl::OUString,KeywordInfo*,ha,eq > KeywordInfoTable; + typedef boost::unordered_map< rtl::OUString,KeywordInfo*,ha,eq > KeywordInfoTable; KeywordInfoTable m_aKeywordInfo; // Module information typedef - std::hash_map< + boost::unordered_map< rtl::OUString, ::com::sun::star::uno::Reference< com::sun::star::container::XHierarchicalNameAccess >, ha, @@ -356,7 +356,7 @@ namespace chelp { ZipFileTable m_aZipFileTable; // No closing of an once opened jarfile typedef - std::hash_map< + boost::unordered_map< rtl::OUString, ::com::sun::star::uno::Reference< com::sun::star::i18n::XCollator >, ha, @@ -381,7 +381,7 @@ namespace chelp { }; typedef - std::hash_set< + boost::unordered_set< rtl::OString, ostring_ha, ostring_eq > EmptyActiveTextSet; @@ -407,7 +407,7 @@ namespace chelp { }; // Hashtable to cache extension help status - typedef std::hash_map + typedef boost::unordered_map < ::rtl::OUString, bool, diff --git a/xmlhelp/source/cxxhelp/provider/db.hxx b/xmlhelp/source/cxxhelp/provider/db.hxx index 857145f4aea4..da81a6d63c34 100644 --- a/xmlhelp/source/cxxhelp/provider/db.hxx +++ b/xmlhelp/source/cxxhelp/provider/db.hxx @@ -36,7 +36,7 @@ #include "com/sun/star/ucb/XSimpleFileAccess.hpp" -#include <hash_map> +#include <boost/unordered_map.hpp> #include <rtl/string.hxx> extern "C" { @@ -114,8 +114,8 @@ namespace berkeleydbproxy { { return m_pBuffer; } }; - typedef std::hash_map< rtl::OString,std::pair<int,int>,ha,eq > StringToValPosMap; - typedef std::hash_map< rtl::OString,rtl::OString,ha,eq > StringToDataMap; + typedef boost::unordered_map< rtl::OString,std::pair<int,int>,ha,eq > StringToValPosMap; + typedef boost::unordered_map< rtl::OString,rtl::OString,ha,eq > StringToDataMap; class DBHelp { |