summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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