diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-17 09:19:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-17 10:08:23 +0100 |
commit | f2be92b68d936c6e9d5e8a96deb1580bcbf8c17f (patch) | |
tree | 38c50cace69ddb2e33970a4a540780b51fee82b3 /include/formula | |
parent | dbf2273e45c8b134b1470ee6173ca260e2545fed (diff) |
remove OUStringHashCode in favor of OUStringHash
(and as always if you find one, you can be sure there
are 6 others in there when you grep for them)
Change-Id: I9296ddbdda266c7b6d8a0ac0bc13ec5b6340cee7
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/FormulaCompiler.hxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/formula/FormulaCompiler.hxx b/include/formula/FormulaCompiler.hxx index 0d0373eacb6e..c1e94da9a7a4 100644 --- a/include/formula/FormulaCompiler.hxx +++ b/include/formula/FormulaCompiler.hxx @@ -60,16 +60,8 @@ struct FormulaArrayStack }; -struct FORMULA_DLLPUBLIC OUStringHashCode -{ - size_t operator()( const OUString& rStr ) const - { - return rtl_ustr_hashCode_WithLength( rStr.getStr(), rStr.getLength() ); - } -}; - -typedef ::boost::unordered_map< OUString, OpCode, OUStringHashCode, ::std::equal_to< OUString > > OpCodeHashMap; -typedef ::boost::unordered_map< OUString, OUString, OUStringHashCode, ::std::equal_to< OUString > > ExternalHashMap; +typedef ::boost::unordered_map< OUString, OpCode, OUStringHash, ::std::equal_to< OUString > > OpCodeHashMap; +typedef ::boost::unordered_map< OUString, OUString, OUStringHash, ::std::equal_to< OUString > > ExternalHashMap; class FORMULA_DLLPUBLIC FormulaCompiler { |