Kaydet (Commit) d5dd1216 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Use OUStringHash here.

Change-Id: I37625fb421e5b20f299fccccbc9d5ac74c31de3c
üst 3ffb06e7
......@@ -47,32 +47,9 @@
using namespace ::com::sun::star;
namespace comphelper
{
struct hashObjectName_Impl
{
size_t operator()(const OUString & Str) const
{
return (size_t)Str.hashCode();
}
};
struct eqObjectName_Impl
{
bool operator()(const OUString & Str1, const OUString & Str2) const
{
return ( Str1 == Str2 );
}
};
namespace comphelper {
typedef boost::unordered_map
<
OUString,
::com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >,
hashObjectName_Impl,
eqObjectName_Impl
>
typedef boost::unordered_map<OUString, uno::Reference <embed::XEmbeddedObject>, OUStringHash>
EmbeddedObjectContainerNameMap;
struct EmbedImpl
......
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