summaryrefslogtreecommitdiff
path: root/framework/inc/stdtypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'framework/inc/stdtypes.h')
-rw-r--r--framework/inc/stdtypes.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/framework/inc/stdtypes.h b/framework/inc/stdtypes.h
index 407ecfa930b0..b87247e85b83 100644
--- a/framework/inc/stdtypes.h
+++ b/framework/inc/stdtypes.h
@@ -88,29 +88,10 @@ void free(std::vector<T>& vec)
}
/**
- Basic hash based on a std::unordered_map() which provides key=[OUString] and value=[template type] pairs
- It implements some additional funtionality which can be useful but
- is missing at the normal hash implementation.
-*/
-template< class TType >
-class BaseHash : public std::unordered_map< OUString ,
- TType ,
- OUStringHash >
-{
- public:
-
- // the only way to free used memory really!
- void free()
- {
- BaseHash().swap( *this );// get rid of reserved capacity
- }
-};
-
-/**
Basic OUString hash.
Key and values are OUStrings.
*/
-typedef BaseHash< OUString > OUStringHashMap;
+typedef std::unordered_map<OUString, OUString, OUStringHash> OUStringHashMap;
/**
It can be used to map names (e.g. of properties) to her corresponding handles.