diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-10 20:09:15 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-10 20:09:55 -0400 |
commit | d5dd1216804afae35d7fe7dbb1d37b0ca1fcce88 (patch) | |
tree | 7a95660188887ff24f5a1ea8db547ce9fb6fb289 | |
parent | 3ffb06e76be9be7499f12973139949ddbf6297b9 (diff) |
Use OUStringHash here.
Change-Id: I37625fb421e5b20f299fccccbc9d5ac74c31de3c
-rw-r--r-- | comphelper/source/container/embeddedobjectcontainer.cxx | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx index 9286ec8cf200..d614c1a725e9 100644 --- a/comphelper/source/container/embeddedobjectcontainer.cxx +++ b/comphelper/source/container/embeddedobjectcontainer.cxx @@ -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 |