Kaydet (Commit) ff3b9201 authored tarafından Matúš Kukan's avatar Matúš Kukan

webdav: std::hash_set|map -> std::unordered_set|map

Change-Id: Id0c18cb51af742d073d532662558fdd84d476f88
üst aa68e4c5
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include <hash_map> #include <unordered_map>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/uno/Sequence.hxx>
...@@ -82,7 +82,7 @@ public: ...@@ -82,7 +82,7 @@ public:
}; };
typedef std::hash_map typedef std::unordered_map
< <
OUString, OUString,
PropertyValue, PropertyValue,
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#ifndef _WEBDAV_UCP_PROPERTYMAP_HXX #ifndef _WEBDAV_UCP_PROPERTYMAP_HXX
#define _WEBDAV_UCP_PROPERTYMAP_HXX #define _WEBDAV_UCP_PROPERTYMAP_HXX
#include <hash_set> #include <unordered_set>
#include <com/sun/star/beans/Property.hpp> #include <com/sun/star/beans/Property.hpp>
namespace http_dav_ucp { namespace http_dav_ucp {
...@@ -46,7 +46,7 @@ struct hashPropertyName ...@@ -46,7 +46,7 @@ struct hashPropertyName
} }
}; };
typedef std::hash_set typedef std::unordered_set
< <
::com::sun::star::beans::Property, ::com::sun::star::beans::Property,
hashPropertyName, hashPropertyName,
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <com/sun/star/ucb/LockScope.hpp> #include <com/sun/star/ucb/LockScope.hpp>
#include <com/sun/star/ucb/LockType.hpp> #include <com/sun/star/ucb/LockType.hpp>
#include <map> #include <map>
#include <hash_map> #include <unordered_map>
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
...@@ -64,7 +64,7 @@ namespace ...@@ -64,7 +64,7 @@ namespace
} // end of anonymous namespace } // end of anonymous namespace
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// WebDAVName enum and StringToEnum converter using hash_map // WebDAVName enum and StringToEnum converter using unordered_map
namespace namespace
{ {
...@@ -96,7 +96,7 @@ namespace ...@@ -96,7 +96,7 @@ namespace
WebDAVName StrToWebDAVName(const OUString& rStr) WebDAVName StrToWebDAVName(const OUString& rStr)
{ {
typedef std::hash_map< OUString, WebDAVName, OUStringHash > WebDAVNameMapper; typedef std::unordered_map< OUString, WebDAVName, OUStringHash > WebDAVNameMapper;
typedef std::pair< OUString, WebDAVName > WebDAVNameValueType; typedef std::pair< OUString, WebDAVName > WebDAVNameValueType;
static WebDAVNameMapper aWebDAVNameMapperList; static WebDAVNameMapper aWebDAVNameMapperList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment