diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:49:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:49:51 +0200 |
commit | ad6e444a31b5c8848a17ac461021493aa2293f23 (patch) | |
tree | 107afe0cf37929f4e7421b274f4b4a4d7c2fd806 /editeng | |
parent | f36de375975375d3d5ba4fe5244abf9cd2a6b98c (diff) |
loplugin:defaultparams
Change-Id: I62e0ec63ff09c200e0b621c8b042a976e8ce630e
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 2 | ||||
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 4 | ||||
-rw-r--r-- | editeng/source/outliner/outlvw.cxx | 8 | ||||
-rw-r--r-- | editeng/source/uno/unofored.cxx | 2 | ||||
-rw-r--r-- | editeng/source/uno/unotext.cxx | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 1813ce758252..7bae3735ee83 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -322,7 +322,7 @@ bool ImpEditEngine::MouseButtonDown( const MouseEvent& rMEvt, EditView* pView ) pView->pImpEditView->DrawSelection(); pView->pImpEditView->SetEditSelection( aNewSelection ); pView->pImpEditView->DrawSelection(); - pView->ShowCursor( true ); + pView->ShowCursor(); } else if ( rMEvt.GetClicks() == 3 ) { diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index d032d4c90a53..c0fe6852e038 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1550,7 +1550,7 @@ bool SvxAutoCorrect::CreateLanguageFile( const LanguageTag& rLanguageTag, bool b { OSL_ENSURE(m_pLangTable->find(rLanguageTag) == m_pLangTable->end(), "Language already exists "); - OUString sUserDirFile( GetAutoCorrFileName( rLanguageTag, true, false )); + OUString sUserDirFile( GetAutoCorrFileName( rLanguageTag, true )); OUString sShareDirFile( sUserDirFile ); SvxAutoCorrectLanguageLists* pLists = 0; @@ -1576,7 +1576,7 @@ bool SvxAutoCorrect::CreateLanguageFile( const LanguageTag& rLanguageTag, bool b else if( ( FStatHelper::IsDocument( sUserDirFile ) || FStatHelper::IsDocument( sShareDirFile = - GetAutoCorrFileName( rLanguageTag, false, false ) ) || + GetAutoCorrFileName( rLanguageTag ) ) || FStatHelper::IsDocument( sShareDirFile = GetAutoCorrFileName( rLanguageTag, false, false, true) ) ) || diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx index c14fbaf7a264..4da7ccf8eb33 100644 --- a/editeng/source/outliner/outlvw.cxx +++ b/editeng/source/outliner/outlvw.cxx @@ -210,7 +210,7 @@ bool OutlinerView::PostKeyEvent( const KeyEvent& rKEvt, vcl::Window* pFrameWin ) ESelection aTmpSel(nTemp,0,nTemp,0); pEditView->SetSelection( aTmpSel ); } - pEditView->ShowCursor( true ); + pEditView->ShowCursor(); pOwner->UndoActionEnd( OLUNDO_INSERT ); bKeyProcessed = true; } @@ -228,7 +228,7 @@ bool OutlinerView::PostKeyEvent( const KeyEvent& rKEvt, vcl::Window* pFrameWin ) // Position the cursor ESelection aTmpSel(nTemp,0,nTemp,0); pEditView->SetSelection( aTmpSel ); - pEditView->ShowCursor( true ); + pEditView->ShowCursor(); pOwner->UndoActionEnd( OLUNDO_INSERT ); bKeyProcessed = true; } @@ -668,7 +668,7 @@ void OutlinerView::InsertText( const OutlinerParaObject& rParaObj ) pOwner->UndoActionEnd( OLUNDO_INSERT ); - pEditView->ShowCursor( true ); + pEditView->ShowCursor(); } @@ -707,7 +707,7 @@ void OutlinerView::PasteSpecial() pEditView->SetEditEngineUpdateMode( true ); pOwner->UndoActionEnd( OLUNDO_INSERT ); - pEditView->ShowCursor( true ); + pEditView->ShowCursor(); // Chaining handling // NOTE: We need to do this last because it pEditView may be deleted if a switch of box occurs diff --git a/editeng/source/uno/unofored.cxx b/editeng/source/uno/unofored.cxx index 5749777e89f6..59f423b4cf82 100644 --- a/editeng/source/uno/unofored.cxx +++ b/editeng/source/uno/unofored.cxx @@ -97,7 +97,7 @@ SfxItemSet SvxEditEngineForwarder::GetParaAttribs( sal_Int32 nPara ) const sal_uInt16 nWhich = EE_PARA_START; while( nWhich <= EE_PARA_END ) { - if( aSet.GetItemState( nWhich, true ) != SfxItemState::SET ) + if( aSet.GetItemState( nWhich ) != SfxItemState::SET ) { if( rEditEngine.HasParaAttrib( nPara, nWhich ) ) aSet.Put( rEditEngine.GetParaAttrib( nPara, nWhich ) ); diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index 782957a14ec5..76297e5e1088 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -697,7 +697,7 @@ bool SvxUnoTextRangeBase::GetPropertyValueHelper( SfxItemSet& rSet, const SfxIt case EE_PARA_NUMBULLET: { - SfxItemState eState = rSet.GetItemState( EE_PARA_NUMBULLET, true ); + SfxItemState eState = rSet.GetItemState( EE_PARA_NUMBULLET ); if( eState != SfxItemState::SET && eState != SfxItemState::DEFAULT) throw uno::RuntimeException(); @@ -739,7 +739,7 @@ bool SvxUnoTextRangeBase::GetPropertyValueHelper( SfxItemSet& rSet, const SfxIt case EE_PARA_BULLETSTATE: { bool bState = false; - SfxItemState eState = rSet.GetItemState( EE_PARA_BULLETSTATE, true ); + SfxItemState eState = rSet.GetItemState( EE_PARA_BULLETSTATE ); if( eState == SfxItemState::SET || eState == SfxItemState::DEFAULT ) { const SfxBoolItem* pItem = static_cast<const SfxBoolItem*>(rSet.GetItem( EE_PARA_BULLETSTATE )); |