diff options
author | Daniel Sikeler <d.sikeler94@gmail.com> | 2014-09-12 06:17:03 +0000 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-18 13:12:48 +0200 |
commit | 32d6415617b5815bb5d18719f6d2df74becc0997 (patch) | |
tree | 55c7b6d7c068bb6eee60aa0a7add60cc6595513b /idlc | |
parent | d311d85a4d501a0bfef20e610169f20de896a167 (diff) |
fdo#83512 Make use of OUStringHash and OStringHash
Change-Id: I33cafe68c798e3d54943ea1790fa4e73f85e525d
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/inc/idlc/idlctypes.hxx | 18 | ||||
-rw-r--r-- | idlc/inc/idlc/options.hxx | 3 |
2 files changed, 2 insertions, 19 deletions
diff --git a/idlc/inc/idlc/idlctypes.hxx b/idlc/inc/idlc/idlctypes.hxx index 12c73491980e..7766f837b3a5 100644 --- a/idlc/inc/idlc/idlctypes.hxx +++ b/idlc/inc/idlc/idlctypes.hxx @@ -30,22 +30,6 @@ #include <sal/types.h> #include <rtl/ustring.hxx> -struct EqualString -{ - bool operator()(const OString& str1, const OString& str2) const - { - return (str1 == str2); - } -}; - -struct HashString -{ - sal_Int32 operator()(const OString& str) const - { - return str.hashCode(); - } -}; - struct LessString { bool operator()(const OString& str1, const OString& str2) const @@ -60,7 +44,7 @@ typedef ::std::set< OString, LessString > StringSet; class AstDeclaration; -typedef ::boost::unordered_map< OString, AstDeclaration*, HashString, EqualString > DeclMap; +typedef ::boost::unordered_map< OString, AstDeclaration*, OStringHash > DeclMap; typedef ::std::list< AstDeclaration* > DeclList; class AstScope; diff --git a/idlc/inc/idlc/options.hxx b/idlc/inc/idlc/options.hxx index 887f0536d6b9..08d839e736f1 100644 --- a/idlc/inc/idlc/options.hxx +++ b/idlc/inc/idlc/options.hxx @@ -24,8 +24,7 @@ typedef ::boost::unordered_map< OString, OString, - HashString, - EqualString > OptionMap; + OStringHash > OptionMap; class IllegalArgument { |