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 /ucbhelper | |
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 'ucbhelper')
-rw-r--r-- | ucbhelper/source/provider/providerhelper.cxx | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/ucbhelper/source/provider/providerhelper.cxx b/ucbhelper/source/provider/providerhelper.cxx index 21dcd08d1bb5..c7fa7caba7d1 100644 --- a/ucbhelper/source/provider/providerhelper.cxx +++ b/ucbhelper/source/provider/providerhelper.cxx @@ -38,29 +38,11 @@ using namespace com::sun::star; namespace ucbhelper_impl { -struct equalString -{ - bool operator()( - const OUString& rKey11, const OUString& rKey22 ) const - { - return !!( rKey11 == rKey22 ); - } -}; - -struct hashString -{ - size_t operator()( const OUString & rName ) const - { - return rName.hashCode(); - } -}; - typedef boost::unordered_map < OUString, uno::WeakReference< ucb::XContent >, - hashString, - equalString + OUStringHash > Contents; |