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 /include/codemaker | |
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 'include/codemaker')
-rw-r--r-- | include/codemaker/global.hxx | 16 | ||||
-rw-r--r-- | include/codemaker/options.hxx | 3 |
2 files changed, 1 insertions, 18 deletions
diff --git a/include/codemaker/global.hxx b/include/codemaker/global.hxx index 6ee033c7dfd1..b5aabff3099e 100644 --- a/include/codemaker/global.hxx +++ b/include/codemaker/global.hxx @@ -30,22 +30,6 @@ #include <rtl/ustring.hxx> #include <rtl/strbuf.hxx> -struct EqualString -{ - bool operator()(const ::rtl::OString& str1, const ::rtl::OString& str2) const - { - return (str1 == str2); - } -}; - -struct HashString -{ - size_t operator()(const ::rtl::OString& str) const - { - return str.hashCode(); - } -}; - struct LessString { bool operator()(const ::rtl::OString& str1, const ::rtl::OString& str2) const diff --git a/include/codemaker/options.hxx b/include/codemaker/options.hxx index 0c71b7537142..d322a7443022 100644 --- a/include/codemaker/options.hxx +++ b/include/codemaker/options.hxx @@ -28,8 +28,7 @@ typedef ::boost::unordered_map < ::rtl::OString, ::rtl::OString, - HashString, - EqualString + OStringHash > OptionMap; class IllegalArgument |