diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-22 13:32:21 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-22 13:35:06 -0500 |
commit | af90d610e3c09c32b15beee2d42d86a4dd6aac4d (patch) | |
tree | 27b384a4a9e4fce26f7ff5344aaa01410f995080 | |
parent | 3980fc115d4c816c3dca449752a151f7b1effea4 (diff) |
This function object can now be hidden.
Change-Id: I22bf2339ba496d5fe433b9df9ef2914860e3350d
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 11 | ||||
-rw-r--r-- | include/editeng/svxacorr.hxx | 5 |
2 files changed, 7 insertions, 9 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 931c42a0c5b9..0003029c4f4a 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -2685,11 +2685,14 @@ bool SvxAutoCorrectLanguageLists::DeleteText( const OUString& rShort ) } // Keep the list sorted ... -bool CompareSvxAutocorrWordList::operator()( SvxAutocorrWord* const& lhs, SvxAutocorrWord* const& rhs ) const +struct CompareSvxAutocorrWordList { - CollatorWrapper& rCmp = ::GetCollatorWrapper(); - return rCmp.compareString( lhs->GetShort(), rhs->GetShort() ) < 0; -} + bool operator()( SvxAutocorrWord* const& lhs, SvxAutocorrWord* const& rhs ) const + { + CollatorWrapper& rCmp = ::GetCollatorWrapper(); + return rCmp.compareString( lhs->GetShort(), rhs->GetShort() ) < 0; + } +}; namespace { diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx index 9e5f5da0f4b0..9342c0f00a05 100644 --- a/include/editeng/svxacorr.hxx +++ b/include/editeng/svxacorr.hxx @@ -130,11 +130,6 @@ public: bool IsTextOnly() const { return bIsTxtOnly; } }; -struct CompareSvxAutocorrWordList -{ - bool operator()( SvxAutocorrWord* const& lhs, SvxAutocorrWord* const& rhs ) const; -}; - class EDITENG_DLLPUBLIC SvxAutocorrWordList { struct Impl; |