linguistic/source/spelldsp.cxx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-)
New commits: commit e772c8e86dcdb7c5b80b04d57b454158909ffe61 Author: Andrea Gelmini <andrea.gelm...@gelma.net> AuthorDate: Mon Aug 31 16:10:12 2020 +0200 Commit: Julien Nabet <serval2...@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 <serval2...@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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits