diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-05 11:51:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-09-11 09:45:28 +0200 |
commit | 74bea5b0ab6bcf0eaaa50c8f529f1ea2e96167cf (patch) | |
tree | 01783f0c71b633933ca7fe7cc1886af4e7cceace /include/editeng | |
parent | 9fbb07cbf21c788a72a6e98ef661bbb0374b50a0 (diff) |
convert include/editeng/swafopt.hxx from String to OUString
Change-Id: Ic3686fb44cd1e448b9998f2ddc73f9bfd1b3aaa8
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/swafopt.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/editeng/swafopt.hxx b/include/editeng/swafopt.hxx index 684a1838c731..74e2163ac544 100644 --- a/include/editeng/swafopt.hxx +++ b/include/editeng/swafopt.hxx @@ -34,11 +34,11 @@ namespace editeng { class EDITENG_DLLPUBLIC IAutoCompleteString { private: - String m_String; + OUString m_String; public: - explicit IAutoCompleteString(String const& rString) : m_String(rString) {} + explicit IAutoCompleteString(OUString const& rString) : m_String(rString) {} virtual ~IAutoCompleteString() {} - String const& GetAutoCompleteString() const { return m_String; } + OUString const& GetAutoCompleteString() const { return m_String; } }; struct CompareAutoCompleteString @@ -46,8 +46,8 @@ struct CompareAutoCompleteString bool operator()(IAutoCompleteString *const& lhs, IAutoCompleteString *const& rhs) const { - return lhs->GetAutoCompleteString().CompareIgnoreCaseToAscii( - rhs->GetAutoCompleteString()) == COMPARE_LESS; + return lhs->GetAutoCompleteString().compareToIgnoreAsciiCase( + rhs->GetAutoCompleteString()) < 0; } }; |