summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-07 21:49:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-07 21:49:06 +0200
commit031d314eae926244246565b401d86396eb5b73d6 (patch)
tree3f589fa55a1d091804b5fe8e433039bb4fdadd3b /framework
parent4be81de0d623571d81c167f326dfb913fdb08df6 (diff)
Just use the hash<sal_Int16> default
Change-Id: Ice2c0cbf382997c2d07cc8cd4a7b085a153fffef
Diffstat (limited to 'framework')
-rw-r--r--framework/inc/stdtypes.h8
-rw-r--r--framework/source/inc/accelerators/keymapping.hxx4
2 files changed, 1 insertions, 11 deletions
diff --git a/framework/inc/stdtypes.h b/framework/inc/stdtypes.h
index dd0afe91f710..0f1f28f3e3a5 100644
--- a/framework/inc/stdtypes.h
+++ b/framework/inc/stdtypes.h
@@ -38,14 +38,6 @@ namespace framework{
Own hash functions used for stl-structures ... e.g. hash tables/maps ...
*/
-struct ShortHashCode
-{
- size_t operator()( const ::sal_Int16& nShort ) const
- {
- return (size_t)nShort;
- }
-};
-
struct Int32HashCode
{
size_t operator()( const ::sal_Int32& nValue ) const
diff --git a/framework/source/inc/accelerators/keymapping.hxx b/framework/source/inc/accelerators/keymapping.hxx
index 4edc2681dcc5..d86917ead052 100644
--- a/framework/source/inc/accelerators/keymapping.hxx
+++ b/framework/source/inc/accelerators/keymapping.hxx
@@ -55,9 +55,7 @@ class KeyMapping
typedef std::unordered_map<OUString, sal_Int16, OUStringHash> Identifier2CodeHash;
/** @short hash structure to map key codes to identifier. */
- typedef std::unordered_map< sal_Int16 ,
- OUString ,
- ShortHashCode > Code2IdentifierHash;
+ typedef std::unordered_map<sal_Int16, OUString> Code2IdentifierHash;
// member