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 /ucb/source/ucp/package/pkgprovider.cxx | |
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 'ucb/source/ucp/package/pkgprovider.cxx')
-rw-r--r-- | ucb/source/ucp/package/pkgprovider.cxx | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/ucb/source/ucp/package/pkgprovider.cxx b/ucb/source/ucp/package/pkgprovider.cxx index 42ee7e789be6..cf3c35472c91 100644 --- a/ucb/source/ucp/package/pkgprovider.cxx +++ b/ucb/source/ucp/package/pkgprovider.cxx @@ -91,29 +91,11 @@ public: -struct equalString -{ - bool operator()( - const OUString& rKey1, const OUString& rKey2 ) const - { - return !!( rKey1 == rKey2 ); - } -}; - -struct hashString -{ - size_t operator()( const OUString & rName ) const - { - return rName.hashCode(); - } -}; - typedef boost::unordered_map < OUString, Package*, - hashString, - equalString + OUStringHash > PackageMap; |