summaryrefslogtreecommitdiffstats
path: root/comphelper/source
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-07-10 20:09:15 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-07-10 20:09:55 -0400
commitd5dd1216804afae35d7fe7dbb1d37b0ca1fcce88 (patch)
tree7a95660188887ff24f5a1ea8db547ce9fb6fb289 /comphelper/source
parentfdo#80410: sw: DOCX export: support DOCX embedded objects (diff)
downloadcore-d5dd1216804afae35d7fe7dbb1d37b0ca1fcce88.tar.gz
core-d5dd1216804afae35d7fe7dbb1d37b0ca1fcce88.zip
Use OUStringHash here.
Change-Id: I37625fb421e5b20f299fccccbc9d5ac74c31de3c
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/container/embeddedobjectcontainer.cxx27
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