summaryrefslogtreecommitdiff
path: root/editeng/source/misc/svxacorr.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-11-22 13:32:21 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-11-22 13:35:06 -0500
commitaf90d610e3c09c32b15beee2d42d86a4dd6aac4d (patch)
tree27b384a4a9e4fce26f7ff5344aaa01410f995080 /editeng/source/misc/svxacorr.cxx
parent3980fc115d4c816c3dca449752a151f7b1effea4 (diff)
This function object can now be hidden.
Change-Id: I22bf2339ba496d5fe433b9df9ef2914860e3350d
Diffstat (limited to 'editeng/source/misc/svxacorr.cxx')
-rw-r--r--editeng/source/misc/svxacorr.cxx11
1 files changed, 7 insertions, 4 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 {