diff options
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 { |