Kaydet (Commit) 031d314e authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Just use the hash<sal_Int16> default

Change-Id: Ice2c0cbf382997c2d07cc8cd4a7b085a153fffef
üst 4be81de0
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment