bClearRange is always true. Remove it.
Change-Id: I1df4bdaa5f13ede9e04972a02948eb072dca2bec
diff --git a/editeng/source/editeng/edtspell.cxx b/editeng/source/editeng/edtspell.cxx
index 37b1bf6f..0ef6d03 100644
--- a/editeng/source/editeng/edtspell.cxx
+++ b/editeng/source/editeng/edtspell.cxx
@@ -441,8 +441,7 @@ void WrongList::ClearWrongs( sal_uInt16 nStart, sal_uInt16 nEnd,
SAL_WARN_IF(DbgIsBuggy(), "editeng", "ClearWrongs: WrongList broken!");
}
void WrongList::InsertWrong( sal_uInt16 nStart, sal_uInt16 nEnd,
sal_Bool bClearRange )
void WrongList::InsertWrong( sal_uInt16 nStart, sal_uInt16 nEnd )
{
WrongList::iterator nPos = end();
for (WrongList::iterator i = begin(); i != end(); ++i)
@@ -450,7 +449,6 @@ void WrongList::InsertWrong( sal_uInt16 nStart, sal_uInt16 nEnd,
if (i->nStart >= nStart )
{
nPos = i;
if ( bClearRange )
{
// It can really only happen that the Wrong starts exactly here
// and runs along, but not that there are several ranges ...
diff --git a/editeng/source/editeng/edtspell.hxx b/editeng/source/editeng/edtspell.hxx
index 7df5e08..79f39f1 100644
--- a/editeng/source/editeng/edtspell.hxx
+++ b/editeng/source/editeng/edtspell.hxx
@@ -103,7 +103,7 @@ public:
void TextInserted( sal_uInt16 nPos, sal_uInt16 nChars, sal_Bool bPosIsSep );
void TextDeleted( sal_uInt16 nPos, sal_uInt16 nChars );
void InsertWrong( sal_uInt16 nStart, sal_uInt16 nEnd, sal_Bool bClearRange );
void InsertWrong( sal_uInt16 nStart, sal_uInt16 nEnd );
sal_Bool NextWrong( sal_uInt16& rnStart, sal_uInt16& rnEnd ) const;
sal_Bool HasWrong( sal_uInt16 nStart, sal_uInt16 nEnd ) const;
sal_Bool HasAnyWrong( sal_uInt16 nStart, sal_uInt16 nEnd ) const;
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index 689d680..6e17bd1 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -2321,7 +2321,7 @@ void ImpEditEngine::DoOnlineSpelling( ContentNode* pThisNodeOnly, sal_Bool bSpel
// spanning exactly over words because the
// WordDelimiters during expansion are not
// evaluated.
pWrongList->InsertWrong( nWStart, nXEnd, sal_True );
pWrongList->InsertWrong(nWStart, nXEnd);
bChanged = sal_True;
}
}