diff options
author | Daniel Sikeler <d.sikeler94@gmail.com> | 2014-09-12 06:17:03 +0000 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-18 13:12:48 +0200 |
commit | 32d6415617b5815bb5d18719f6d2df74becc0997 (patch) | |
tree | 55c7b6d7c068bb6eee60aa0a7add60cc6595513b /include/toolkit | |
parent | d311d85a4d501a0bfef20e610169f20de896a167 (diff) |
fdo#83512 Make use of OUStringHash and OStringHash
Change-Id: I33cafe68c798e3d54943ea1790fa4e73f85e525d
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/toolkit')
-rw-r--r-- | include/toolkit/controls/eventcontainer.hxx | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/include/toolkit/controls/eventcontainer.hxx b/include/toolkit/controls/eventcontainer.hxx index 2744c1d413ce..9ba2391638ce 100644 --- a/include/toolkit/controls/eventcontainer.hxx +++ b/include/toolkit/controls/eventcontainer.hxx @@ -36,28 +36,11 @@ namespace toolkit { // Hashtable to optimize -struct hashName_Impl -{ - size_t operator()(const OUString& Str) const - { - return (size_t)Str.hashCode(); - } -}; - -struct eqName_Impl -{ - bool operator()(const OUString& Str1, const OUString& Str2) const - { - return ( Str1 == Str2 ); - } -}; - typedef boost::unordered_map < OUString, sal_Int32, - hashName_Impl, - eqName_Impl + OUStringHash > NameContainerNameMap; |