From af90d610e3c09c32b15beee2d42d86a4dd6aac4d Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Sat, 22 Nov 2014 13:32:21 -0500 Subject: This function object can now be hidden. Change-Id: I22bf2339ba496d5fe433b9df9ef2914860e3350d --- editeng/source/misc/svxacorr.cxx | 11 +++++++---- 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; -- cgit v1.2.3