From 65fe84d273a4fe099cd03be088165672788cf32e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 19 Oct 2015 17:51:34 +0200 Subject: loplugin:defaultparams Change-Id: I7f24a05bdf01b455d470f5b560359dea3f407c58 --- svtools/source/brwbox/brwbox2.cxx | 10 +++++----- svtools/source/brwbox/datwin.cxx | 4 ++-- svtools/source/contnr/imivctl1.cxx | 8 ++++---- svtools/source/contnr/svimpbox.cxx | 10 +++++----- svtools/source/contnr/treelistbox.cxx | 6 +++--- svtools/source/control/breadcrumb.cxx | 8 ++++---- svtools/source/control/ctrlbox.cxx | 6 +++--- svtools/source/misc/embedhlp.cxx | 4 ++-- 8 files changed, 28 insertions(+), 28 deletions(-) (limited to 'svtools') diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx index 52fec260e6f3..47f0101cc862 100644 --- a/svtools/source/brwbox/brwbox2.cxx +++ b/svtools/source/brwbox/brwbox2.cxx @@ -504,7 +504,7 @@ void BrowseBox::ExpandRowSelection( const BrowserMouseEvent& rEvt ) } else if ( !bMultiSelection || !IsRowSelected( rEvt.GetRow() ) ) - SelectRow( rEvt.GetRow(), true ); + SelectRow( rEvt.GetRow() ); GoToRow( rEvt.GetRow(), false ); DoShowCursor( "ExpandRowSelection" ); @@ -1620,7 +1620,7 @@ void BrowseBox::MouseButtonDown( const BrowserMouseEvent& rEvt ) // select directly SetNoSelection(); GoToRow( rEvt.GetRow() ); - SelectRow( rEvt.GetRow(), true ); + SelectRow( rEvt.GetRow() ); aSelRange = Range( rEvt.GetRow(), rEvt.GetRow() ); bSelect = true; } @@ -1682,7 +1682,7 @@ void BrowseBox::MouseButtonUp( const BrowserMouseEvent &rEvt ) else { GoToRow( rEvt.GetRow() ); - SelectRow( rEvt.GetRow(), true ); + SelectRow( rEvt.GetRow() ); } } bSelect = true; @@ -1834,7 +1834,7 @@ void BrowseBox::Dispatch( sal_uInt16 nId ) SelectRow( nRow, bLocalSelect ); bool bDone = GoToRow( GetCurRow() + 1, false ); if ( bDone ) - SelectRow( GetCurRow(), true ); + SelectRow( GetCurRow() ); } else ScrollRows( 1 ); @@ -1851,7 +1851,7 @@ void BrowseBox::Dispatch( sal_uInt16 nId ) SelectRow( nCurRow, bLocalSelect ); bool bDone = GoToRow( nRow - 1, false ); if ( bDone ) - SelectRow( GetCurRow(), true ); + SelectRow( GetCurRow() ); } break; case BROWSER_CURSORPAGEDOWN: diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx index daa21121282e..3968c17aee8b 100644 --- a/svtools/source/brwbox/datwin.cxx +++ b/svtools/source/brwbox/datwin.cxx @@ -288,9 +288,9 @@ void BrowserDataWin::DataChanged( const DataChangedEvent& rDCEvt ) { if( !bOwnDataChangedHdl ) { - InitSettings_Impl(this, true, true); + InitSettings_Impl(this); Invalidate(); - InitSettings_Impl(GetParent(), true, true); + InitSettings_Impl(GetParent()); GetParent()->Invalidate(); GetParent()->Resize(); } diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index 92a0b4135b63..06a7f8173de4 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -1163,7 +1163,7 @@ bool SvxIconChoiceCtrl_Impl::KeyInput( const KeyEvent& rKEvt ) case KEY_DIVIDE : case KEY_A: if( bMod1 && (eSelectionMode != SINGLE_SELECTION)) - SelectAll( true ); + SelectAll(); else bKeyUsed = false; break; @@ -2058,7 +2058,7 @@ void SvxIconChoiceCtrl_Impl::SetCursor( SvxIconChoiceCtrlEntry* pEntry, bool bSy { if( pCursor && eSelectionMode == SINGLE_SELECTION && bSyncSingleSelection && !pCursor->IsSelected() ) - SelectEntry( pCursor, true, true ); + SelectEntry( pCursor, true ); return; } ShowCursor( false ); @@ -2068,14 +2068,14 @@ void SvxIconChoiceCtrl_Impl::SetCursor( SvxIconChoiceCtrlEntry* pEntry, bool bSy { pOldCursor->ClearFlags( SvxIconViewFlags::FOCUSED ); if( eSelectionMode == SINGLE_SELECTION && bSyncSingleSelection ) - SelectEntry( pOldCursor, false, true ); // deselect old cursor + SelectEntry( pOldCursor, false ); // deselect old cursor } if( pCursor ) { ToTop( pCursor ); pCursor->SetFlags( SvxIconViewFlags::FOCUSED ); if( eSelectionMode == SINGLE_SELECTION && bSyncSingleSelection ) - SelectEntry( pCursor, true, true ); + SelectEntry( pCursor, true ); if( !bShowFocusAsync ) ShowCursor( true ); else diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index aac8af7d8a00..5ba4a954e407 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -1572,7 +1572,7 @@ void SvImpLBox::CollapsingEntry( SvTreeListEntry* pEntry ) if( !pView->IsEntryVisible( pEntry ) || !pStartEntry ) return; - SelAllDestrAnch( false, true ); // deselect all + SelAllDestrAnch( false ); // deselect all // is the collapsed cursor visible? long nY = GetEntryLine( pEntry ); @@ -1763,7 +1763,7 @@ void SvImpLBox::EntryRemoved() void SvImpLBox::MovingEntry( SvTreeListEntry* pEntry ) { int bDeselAll = nFlags & F_DESEL_ALL; - SelAllDestrAnch( false, true ); // DeselectAll(); + SelAllDestrAnch( false ); // DeselectAll(); if( !bDeselAll ) nFlags &= (~F_DESEL_ALL); @@ -1839,7 +1839,7 @@ void SvImpLBox::EntryInserted( SvTreeListEntry* pEntry ) return; int bDeselAll = nFlags & F_DESEL_ALL; if( bDeselAll ) - SelAllDestrAnch( false, true ); + SelAllDestrAnch( false ); else DestroyAnchor(); // nFlags &= (~F_DESEL_ALL); @@ -2067,7 +2067,7 @@ void SvImpLBox::MouseButtonDown( const MouseEvent& rMEvt ) { // select anew & bye if( !bSimpleTravel && !aSelEng.IsAlwaysAdding()) - SelAllDestrAnch( false, true ); // DeselectAll(); + SelAllDestrAnch( false ); // DeselectAll(); SetCursor( pEntry ); return; @@ -3119,7 +3119,7 @@ void SvImpLBox::SetCurEntry( SvTreeListEntry* pEntry ) if ( ( aSelEng.GetSelectionMode() != SINGLE_SELECTION ) && ( aSelEng.GetSelectionMode() != NO_SELECTION ) ) - SelAllDestrAnch( false, true ); + SelAllDestrAnch( false ); if ( pEntry ) MakeVisible( pEntry ); SetCursor( pEntry ); diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index 4aaf9f46569b..f9e18453895a 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -1201,7 +1201,7 @@ sal_Int8 SvTreeListBox::AcceptDrop( const AcceptDropEvent& rEvt ) sal_Int8 SvTreeListBox::ExecuteDrop( const ExecuteDropEvent& rEvt, SvTreeListBox* pSourceView ) { DBG_ASSERT( pSourceView, "SvTreeListBox::ExecuteDrop(): no source view" ); - pSourceView->EnableSelectionAsDropTarget( true ); + pSourceView->EnableSelectionAsDropTarget(); ImplShowTargetEmphasis( pTargetEntry, false ); pDDTarget = this; @@ -1312,7 +1312,7 @@ nAction #endif ) { - EnableSelectionAsDropTarget( true ); + EnableSelectionAsDropTarget(); #ifndef UNX if( (nAction == DND_ACTION_MOVE) && ( (pDDTarget && @@ -2137,7 +2137,7 @@ void SvTreeListBox::KeyInput( const KeyEvent& rKEvt ) void SvTreeListBox::RequestingChildren( SvTreeListEntry* pParent ) { if( !pParent->HasChildren() ) - InsertEntry( OUString(""), pParent, false, TREELIST_APPEND ); + InsertEntry( OUString(""), pParent ); } void SvTreeListBox::GetFocus() diff --git a/svtools/source/control/breadcrumb.cxx b/svtools/source/control/breadcrumb.cxx index 15be1949a9d9..2f7766ec3e9b 100644 --- a/svtools/source/control/breadcrumb.cxx +++ b/svtools/source/control/breadcrumb.cxx @@ -96,7 +96,7 @@ void Breadcrumb::SetRootName( const OUString& rURL ) m_aLinks[i]->Hide(); m_aSeparators[i]->Hide(); - m_aLinks[i]->Enable( true ); + m_aLinks[i]->Enable(); } } @@ -121,7 +121,7 @@ void Breadcrumb::SetURL( const OUString& rURL ) // root field m_aLinks[0]->SetText( m_sRootName ); - m_aLinks[0]->Enable( true ); + m_aLinks[0]->Enable(); m_aLinks[0]->SetURL( sRootPath ); // fill the other fields @@ -143,7 +143,7 @@ void Breadcrumb::SetURL( const OUString& rURL ) m_aLinks[i]->SetText( sLabel ); m_aLinks[i]->SetURL( sRootPath + OUString( sPath.getStr(), nEnd ) ); m_aLinks[i]->Hide(); - m_aLinks[i]->Enable( true ); + m_aLinks[i]->Enable(); m_aSeparators[i]->Hide(); @@ -159,7 +159,7 @@ void Breadcrumb::SetURL( const OUString& rURL ) m_aLinks[i]->Hide(); m_aSeparators[i]->Hide(); - m_aLinks[i]->Enable( true ); + m_aLinks[i]->Enable(); } // show fields diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 4568f4a49b05..6f937eb83528 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -1095,7 +1095,7 @@ namespace //Make sure it fits in the available height while (aSize.Height() > 0) { - if (!rDevice.GetTextBoundRect(rTextRect, rSampleText, 0, 0)) + if (!rDevice.GetTextBoundRect(rTextRect, rSampleText)) break; if (rTextRect.GetHeight() <= nH) { @@ -1155,7 +1155,7 @@ void FontNameBox::UserDraw( const UserDrawEvent& rUDEvt ) if (!bUsingCorrectFont) { pRenderContext->SetFont(aOldFont); - pRenderContext->GetTextBoundRect(aTextRect, sFontName, 0, 0); + pRenderContext->GetTextBoundRect(aTextRect, sFontName); } long nTextHeight = aTextRect.GetHeight(); @@ -1273,7 +1273,7 @@ void FontNameBox::UserDraw( const UserDrawEvent& rUDEvt ) while (nWidth > nSpace || nWidth > MAXPREVIEWWIDTH) { sSampleText = sSampleText.copy(0, sSampleText.getLength()-1); - nWidth = pRenderContext->GetTextBoundRect(aTextRect, sSampleText, 0, 0) ? + nWidth = pRenderContext->GetTextBoundRect(aTextRect, sSampleText) ? aTextRect.GetWidth() : 0; } diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx index 0d7ff89cd1bd..18dc2a639982 100644 --- a/svtools/source/misc/embedhlp.cxx +++ b/svtools/source/misc/embedhlp.cxx @@ -439,7 +439,7 @@ void EmbeddedObjectRef::GetReplacement( bool bUpdate ) { GraphicFilter& rGF = GraphicFilter::GetGraphicFilter(); if( mpImpl->pGraphic ) - rGF.ImportGraphic( *mpImpl->pGraphic, OUString(), *pGraphicStream, GRFILTER_FORMAT_DONTKNOW ); + rGF.ImportGraphic( *mpImpl->pGraphic, OUString(), *pGraphicStream ); mpImpl->mnGraphicVersion++; } } @@ -537,7 +537,7 @@ void EmbeddedObjectRef::SetGraphicStream( const uno::Reference< io::XInputStream if ( pGraphicStream ) { GraphicFilter& rGF = GraphicFilter::GetGraphicFilter(); - rGF.ImportGraphic( *mpImpl->pGraphic, "", *pGraphicStream, GRFILTER_FORMAT_DONTKNOW ); + rGF.ImportGraphic( *mpImpl->pGraphic, "", *pGraphicStream ); mpImpl->mnGraphicVersion++; if ( mpImpl->pContainer ) -- cgit