[Libreoffice-commits] core.git: editeng/source include/editeng
Kohei Yoshida
kohei.yoshida at collabora.com
Sat Nov 22 10:34:17 PST 2014
editeng/source/misc/svxacorr.cxx | 11 +++++++----
include/editeng/svxacorr.hxx | 5 -----
2 files changed, 7 insertions(+), 9 deletions(-)
New commits:
commit af90d610e3c09c32b15beee2d42d86a4dd6aac4d
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Sat Nov 22 13:32:21 2014 -0500
This function object can now be hidden.
Change-Id: I22bf2339ba496d5fe433b9df9ef2914860e3350d
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 931c42a..0003029 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 9e5f5da..9342c0f 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;
More information about the Libreoffice-commits
mailing list