diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-02 11:22:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-02 11:23:11 +0200 |
commit | e09df5a70a57c06b2be846ca673dcc8b4f003918 (patch) | |
tree | 6bfb7a4b5bc257fe18582d1cc4eee25898b13a0a /sc/source/ui/view/viewfun4.cxx | |
parent | da83d2899ec20a6cd181c7a0d5f465bd11088a5a (diff) |
loplugin:unuseddefaultparams in sc (part1)
Change-Id: Ie7c23bfee7cb6c73e455a47801f7eb1b481a8cf0
Diffstat (limited to 'sc/source/ui/view/viewfun4.cxx')
-rw-r--r-- | sc/source/ui/view/viewfun4.cxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx index c2f08be42f63..79192ad429f1 100644 --- a/sc/source/ui/view/viewfun4.cxx +++ b/sc/source/ui/view/viewfun4.cxx @@ -172,12 +172,13 @@ void ScViewFunc::PasteRTF( SCCOL nStartCol, SCROW nStartRow, ShowAllCursors(); } } -void ScViewFunc::DoRefConversion( bool bRecord ) +void ScViewFunc::DoRefConversion() { ScDocument* pDoc = GetViewData().GetDocument(); ScMarkData& rMark = GetViewData().GetMarkData(); SCTAB nTabCount = pDoc->GetTableCount(); - if (bRecord && !pDoc->IsUndoEnabled()) + bool bRecord = true; + if (!pDoc->IsUndoEnabled()) bRecord = false; ScRange aMarkRange; @@ -297,7 +298,7 @@ void ScViewFunc::DoRefConversion( bool bRecord ) ErrorMessage(STR_ERR_NOREF); } // Thesaurus - Undo ok -void ScViewFunc::DoThesaurus( bool bRecord ) +void ScViewFunc::DoThesaurus() { SCCOL nCol; SCROW nRow; @@ -311,7 +312,8 @@ void ScViewFunc::DoThesaurus( bool bRecord ) std::unique_ptr<ESelection> pEditSel; std::unique_ptr<ScEditEngineDefaulter> pThesaurusEngine; bool bIsEditMode = GetViewData().HasEditView(eWhich); - if (bRecord && !rDoc.IsUndoEnabled()) + bool bRecord = true; + if (!rDoc.IsUndoEnabled()) bRecord = false; if (bIsEditMode) // edit mode active { @@ -417,10 +419,10 @@ void ScViewFunc::DoThesaurus( bool bRecord ) pDocSh->PostPaintGridAll(); } -void ScViewFunc::DoHangulHanjaConversion( bool bRecord ) +void ScViewFunc::DoHangulHanjaConversion() { ScConversionParam aConvParam( SC_CONVERSION_HANGULHANJA, LANGUAGE_KOREAN, 0, true ); - DoSheetConversion( aConvParam, bRecord ); + DoSheetConversion( aConvParam ); } void ScViewFunc::DoSheetConversion( const ScConversionParam& rConvParam, bool bRecord ) |