summaryrefslogtreecommitdiff
path: root/sc/inc/autonamecache.hxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 12:51:20 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-09-27 12:51:20 +0000
commitcea7a6b35d05d3942dfd78f8a2e352378854bfbd (patch)
tree58d22bdfba9fca9e68ae28b564c29531edc9d04f /sc/inc/autonamecache.hxx
parent0463c31163ddeb9289863e7ca035b31c62ea0151 (diff)
INTEGRATION: CWS calc44 (1.2.454); FILE MERGED
2007/09/17 13:34:45 nn 1.2.454.1: #i81594# Remove duplicate hash code function
Diffstat (limited to 'sc/inc/autonamecache.hxx')
-rw-r--r--sc/inc/autonamecache.hxx15
1 files changed, 4 insertions, 11 deletions
diff --git a/sc/inc/autonamecache.hxx b/sc/inc/autonamecache.hxx
index 14371661ef64..6aa1e64d63f7 100644
--- a/sc/inc/autonamecache.hxx
+++ b/sc/inc/autonamecache.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: autonamecache.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: kz $ $Date: 2006-01-31 18:34:36 $
+ * last change: $Author: hr $ $Date: 2007-09-27 13:51:20 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -42,17 +42,10 @@
#ifndef SC_ADDRESS_HXX
#include "address.hxx"
#endif
-
-struct ScAutoNameHashCode
-{
- size_t operator()( const String& rStr ) const
- {
- return rtl_ustr_hashCode_WithLength( rStr.GetBuffer(), rStr.Len() );
- }
-};
+#include "global.hxx"
typedef ::std::vector< ScAddress > ScAutoNameAddresses;
-typedef ::std::hash_map< String, ScAutoNameAddresses, ScAutoNameHashCode, ::std::equal_to< String > > ScAutoNameHashMap;
+typedef ::std::hash_map< String, ScAutoNameAddresses, ScStringHashCode, ::std::equal_to< String > > ScAutoNameHashMap;
//
// Cache for faster lookup of automatic names during CompileXML