[Libreoffice-commits] core.git: linguistic/source
Andrea Gelmini (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 1 20:04:21 UTC 2020
linguistic/source/spelldsp.cxx | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
New commits:
commit e772c8e86dcdb7c5b80b04d57b454158909ffe61
Author: Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Mon Aug 31 16:10:12 2020 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Tue Sep 1 22:03:39 2020 +0200
Fix typo in code
It passed "make check" on Linux
Change-Id: I468a946d0d3a22650cfc2b2cf04c6a4fa42bba87
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101798
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx
index a1390c916c77..fb58843a0efb 100644
--- a/linguistic/source/spelldsp.cxx
+++ b/linguistic/source/spelldsp.cxx
@@ -453,7 +453,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl(
// try already instantiated services first
{
const Reference< XSpellChecker > *pRef = pEntry->aSvcRefs.getConstArray();
- sal_Int32 nNumSugestions = -1;
+ sal_Int32 nNumSuggestions = -1;
while (i <= pEntry->nLastTriedSvcIndex
&& (!bTmpResValid || xTmpRes.is()) )
{
@@ -483,17 +483,17 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl(
if (!xRes.is() && bTmpResValid)
{
xRes = xTmpRes;
- nNumSugestions = 0;
+ nNumSuggestions = 0;
if (xRes.is())
- nNumSugestions = xRes->getAlternatives().getLength();
+ nNumSuggestions = xRes->getAlternatives().getLength();
}
- sal_Int32 nTmpNumSugestions = 0;
+ sal_Int32 nTmpNumSuggestions = 0;
if (xTmpRes.is() && bTmpResValid)
- nTmpNumSugestions = xTmpRes->getAlternatives().getLength();
- if (xRes.is() && nNumSugestions == 0 && nTmpNumSugestions > 0)
+ nTmpNumSuggestions = xTmpRes->getAlternatives().getLength();
+ if (xRes.is() && nNumSuggestions == 0 && nTmpNumSuggestions > 0)
{
xRes = xTmpRes;
- nNumSugestions = nTmpNumSugestions;
+ nNumSuggestions = nTmpNumSuggestions;
}
++i;
@@ -514,7 +514,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl(
Sequence< Any > aArgs(2);
aArgs.getArray()[0] <<= GetPropSet();
- sal_Int32 nNumSugestions = -1;
+ sal_Int32 nNumSuggestions = -1;
while (i < nLen && (!bTmpResValid || xTmpRes.is()))
{
// create specific service via it's implementation name
@@ -562,17 +562,17 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl(
if (!xRes.is() && bTmpResValid)
{
xRes = xTmpRes;
- nNumSugestions = 0;
+ nNumSuggestions = 0;
if (xRes.is())
- nNumSugestions = xRes->getAlternatives().getLength();
+ nNumSuggestions = xRes->getAlternatives().getLength();
}
- sal_Int32 nTmpNumSugestions = 0;
+ sal_Int32 nTmpNumSuggestions = 0;
if (xTmpRes.is() && bTmpResValid)
- nTmpNumSugestions = xTmpRes->getAlternatives().getLength();
- if (xRes.is() && nNumSugestions == 0 && nTmpNumSugestions > 0)
+ nTmpNumSuggestions = xTmpRes->getAlternatives().getLength();
+ if (xRes.is() && nNumSuggestions == 0 && nTmpNumSuggestions > 0)
{
xRes = xTmpRes;
- nNumSugestions = nTmpNumSugestions;
+ nNumSuggestions = nTmpNumSuggestions;
}
pEntry->nLastTriedSvcIndex = static_cast<sal_Int16>(i);
More information about the Libreoffice-commits
mailing list