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 /vcl/unx/generic/printer/ppdparser.cxx | |
parent | iss is unordered_multimap, so can't rely on order (diff) | |
download | core-fd1372ba8b1c3eb3c7fad6d9c623176c8071f31b.tar.gz core-fd1372ba8b1c3eb3c7fad6d9c623176c8071f31b.zip |
boost::unordered_map->std::unordered_map
you can get debug stl this way
Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
Diffstat (limited to 'vcl/unx/generic/printer/ppdparser.cxx')
-rw-r--r-- | vcl/unx/generic/printer/ppdparser.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index 7238a44d57f9..ff4cdd685fd7 100644 --- a/vcl/unx/generic/printer/ppdparser.cxx +++ b/vcl/unx/generic/printer/ppdparser.cxx @@ -21,7 +21,6 @@ #include <stdio.h> #include <boost/noncopyable.hpp> -#include <boost/unordered_map.hpp> #include <comphelper/string.hxx> #include "vcl/ppdparser.hxx" @@ -45,6 +44,8 @@ #include "com/sun/star/lang/Locale.hpp" +#include <unordered_map> + namespace psp { class PPDTranslator @@ -71,8 +72,8 @@ namespace psp } }; - typedef boost::unordered_map< com::sun::star::lang::Locale, OUString, LocaleHash, LocaleEqual > translation_map; - typedef boost::unordered_map< OUString, translation_map, OUStringHash > key_translation_map; + typedef std::unordered_map< css::lang::Locale, OUString, LocaleHash, LocaleEqual > translation_map; + typedef std::unordered_map< OUString, translation_map, OUStringHash > key_translation_map; key_translation_map m_aTranslations; public: @@ -244,7 +245,7 @@ namespace psp { public: std::list< PPDParser* > aAllParsers; - boost::unordered_map< OUString, OUString, OUStringHash >* pAllPPDFiles; + std::unordered_map< OUString, OUString, OUStringHash >* pAllPPDFiles; PPDCache() : pAllPPDFiles(NULL) {} @@ -448,7 +449,7 @@ void PPDParser::initPPDFiles(PPDCache &rPPDCache) if( rPPDCache.pAllPPDFiles ) return; - rPPDCache.pAllPPDFiles = new boost::unordered_map< OUString, OUString, OUStringHash >(); + rPPDCache.pAllPPDFiles = new std::unordered_map< OUString, OUString, OUStringHash >(); // check installation directories std::list< OUString > aPathList; @@ -483,7 +484,7 @@ OUString PPDParser::getPPDFile( const OUString& rFile ) PPDDecompressStream aStream( aPPD.PathToFileName() ); if( ! aStream.IsOpen() ) { - boost::unordered_map< OUString, OUString, OUStringHash >::const_iterator it; + std::unordered_map< OUString, OUString, OUStringHash >::const_iterator it; PPDCache &rPPDCache = thePPDCache::get(); bool bRetry = true; |