[Libreoffice-commits] core.git: editeng/source
Julien Nabet
serval2412 at yahoo.fr
Wed Aug 28 15:00:33 PDT 2013
editeng/source/misc/svxacorr.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0c7e4656702a2e9e90cbb9e12f0bfeccafc472a6
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Wed Aug 28 23:55:23 2013 +0200
cppcheck: Reduce scope
Change-Id: Ic93c6306cc90a8c7ed77c0aa7d5a898ee911b75f
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 67a0e9a..d49c229 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -2712,10 +2712,10 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p
const String& rChk = pFnd->GetShort();
xub_StrLen left_wildcard = ( rChk.GetChar( 0 ) == C_ASTERISK ) ? 1 : 0; // "*word" pattern?
xub_StrLen nSttWdPos = nEndPos;
- bool bWasWordDelim = false;
if( nEndPos >= rChk.Len() - left_wildcard)
{
+ bool bWasWordDelim = false;
xub_StrLen nCalcStt = nEndPos - rChk.Len() + left_wildcard;
if( ( !nCalcStt || nCalcStt == rStt || left_wildcard ||
( nCalcStt < rStt &&
More information about the Libreoffice-commits
mailing list