summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2020-08-31 16:10:12 +0200
committerJulien Nabet <serval2412@yahoo.fr>2020-09-01 22:03:39 +0200
commite772c8e86dcdb7c5b80b04d57b454158909ffe61 (patch)
treedc697be9de85b9b765046b624b2fce5dc5d07e76 /linguistic
parentcdf8e4f6496391b2b77741c7ffb8bba6f70a6557 (diff)
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@yahoo.fr>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/spelldsp.cxx28
1 files changed, 14 insertions, 14 deletions
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);