diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-02 08:31:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-02 10:55:46 +0200 |
commit | 591ac7e604fa47304a5ddc1a4f9badbba1199903 (patch) | |
tree | 247946d260ea857cc7d3c3e41b4089fdb371a0a6 /sw | |
parent | 062e7063a94673d016a91a16a30e86b82c70a03d (diff) |
loplugin:checkunusedparams in editeng
Change-Id: I2b770d40ac2339cd2b04a765a6d970675d2ea1c1
Reviewed-on: https://gerrit.libreoffice.org/37133
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/edit/autofmt.cxx | 7 | ||||
-rw-r--r-- | sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx index e41088ca5aeb..8598414ac6b1 100644 --- a/sw/source/core/edit/autofmt.cxx +++ b/sw/source/core/edit/autofmt.cxx @@ -1955,8 +1955,7 @@ void SwAutoFormat::AutoCorrect( sal_Int32 nPos ) sal_Unicode cBlank = nSttPos ? (*pText)[nSttPos - 1] : 0; m_aDelPam.GetPoint()->nContent = nPos; - if( pATst->FnChgWeightUnderl( aACorrDoc, *pText, - nSttPos, nPos )) + if( pATst->FnChgWeightUnderl( aACorrDoc, *pText, nPos )) { if( m_aFlags.bWithRedlining ) { @@ -1985,7 +1984,7 @@ void SwAutoFormat::AutoCorrect( sal_Int32 nPos ) : LANGUAGE_SYSTEM; SetRedlineText( STR_AUTOFMTREDL_NON_BREAK_SPACE ); - if ( pATst->FnAddNonBrkSpace( aACorrDoc, *pText, nSttPos, nPos, eLang ) ) + if ( pATst->FnAddNonBrkSpace( aACorrDoc, *pText, nPos, eLang ) ) --nPos; } break; @@ -2042,7 +2041,7 @@ void SwAutoFormat::AutoCorrect( sal_Int32 nPos ) if ( m_aFlags.bAddNonBrkSpace ) { SetRedlineText( STR_AUTOFMTREDL_NON_BREAK_SPACE ); - pATst->FnAddNonBrkSpace( aACorrDoc, *pText, nSttPos, nPos, eLang ); + pATst->FnAddNonBrkSpace( aACorrDoc, *pText, nPos, eLang ); } if( ( m_aFlags.bChgOrdinalNumber && diff --git a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx index aa44cf093099..d6b57f01d282 100644 --- a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx +++ b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx @@ -812,7 +812,7 @@ bool SwSpellDialogChildWindow::SpellDrawText_Impl(SwWrtShell& rSh, svx::SpellPor OSL_ENSURE(pOutliner, "No Outliner in SwSpellDialogChildWindow::SpellDrawText_Impl"); if(pOutliner) { - bRet = pOutliner->SpellSentence(pSdrView->GetTextEditOutlinerView()->GetEditView(), rPortions, m_bIsGrammarCheckingOn); + bRet = pOutliner->SpellSentence(pSdrView->GetTextEditOutlinerView()->GetEditView(), rPortions); // find out if the current selection is in the first spelled drawing object // and behind the initial selection if(bRet && m_pSpellState->m_bRestartDrawing) |