diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-27 11:43:23 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-28 08:56:58 -0400 |
commit | 9ef052368842f9e5b56b9d47329a81da8e8e2da1 (patch) | |
tree | 373103637ea7c1fb5fa6022d89444e5a404531b7 /editeng | |
parent | 36b81ce89e4eddbc721afa3cd59905ea45249800 (diff) |
bClearRange is always true. Remove it.
Change-Id: I1df4bdaa5f13ede9e04972a02948eb072dca2bec
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/edtspell.cxx | 4 | ||||
-rw-r--r-- | editeng/source/editeng/edtspell.hxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/editeng/source/editeng/edtspell.cxx b/editeng/source/editeng/edtspell.cxx index 37b1bf6f862b..0ef6d039557f 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 7df5e084e8d8..79f39f195e20 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 689d6804d445..6e17bd1821bf 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; } } |