diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-27 14:25:48 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-29 07:07:13 +0000 |
commit | 27319418ed7601fa62993e39894bb8f8902a88d0 (patch) | |
tree | e3d7d8642a6896e3820be916fec1e306429eb3ea /svtools/source/contnr | |
parent | fd586445a47d50ebfff67a7d5e4a329cf064cb92 (diff) |
loplugin:countusersofdefaultparams in store..svtools
Change-Id: I15b4400bddc5a4d0e3de5dfffe18b7e493f97df6
Reviewed-on: https://gerrit.libreoffice.org/27580
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools/source/contnr')
-rw-r--r-- | svtools/source/contnr/fileview.cxx | 4 | ||||
-rw-r--r-- | svtools/source/contnr/imivctl.hxx | 14 | ||||
-rw-r--r-- | svtools/source/contnr/imivctl1.cxx | 12 | ||||
-rw-r--r-- | svtools/source/contnr/ivctrl.cxx | 6 | ||||
-rw-r--r-- | svtools/source/contnr/treelistbox.cxx | 2 |
5 files changed, 19 insertions, 19 deletions
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx index edbc446b4e41..4f05be01106e 100644 --- a/svtools/source/contnr/fileview.cxx +++ b/svtools/source/contnr/fileview.cxx @@ -367,7 +367,7 @@ public: FileViewResult GetFolderContent_Impl( const FolderDescriptor& _rFolder, const FileViewAsyncAction* pAsyncDescriptor, - const css::uno::Sequence< OUString >& rBlackList = css::uno::Sequence< OUString >()); + const css::uno::Sequence< OUString >& rBlackList ); void FilterFolderContent_Impl( const OUString &rFilter ); void CancelRunningAsyncAction(); @@ -1127,7 +1127,7 @@ bool SvtFileView::Initialize( const css::uno::Reference< css::ucb::XContent>& _x mpImpl->Clear(); ::ucbhelper::Content aContent(_xContent, mpImpl->mxCmdEnv, comphelper::getProcessComponentContext() ); - FileViewResult eResult = mpImpl->GetFolderContent_Impl( FolderDescriptor( aContent ), nullptr ); + FileViewResult eResult = mpImpl->GetFolderContent_Impl( FolderDescriptor( aContent ), nullptr, css::uno::Sequence< OUString >() ); OSL_ENSURE( eResult != eStillRunning, "SvtFileView::Initialize: this was expected to be synchronous!" ); if ( eResult != eSuccess ) return false; diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx index 0e0f09e0db6b..af0f2d936ccb 100644 --- a/svtools/source/contnr/imivctl.hxx +++ b/svtools/source/contnr/imivctl.hxx @@ -324,7 +324,7 @@ public: ~SvxIconChoiceCtrl_Impl(); bool SetChoiceWithCursor() { bool bOld = bChooseWithCursor; bChooseWithCursor = true; return bOld; } - void Clear( bool bInCtor = false ); + void Clear( bool bInCtor ); void SetStyle( WinBits nWinStyle ); WinBits GetStyle() const { return nWinBits; } void InsertEntry( SvxIconChoiceCtrlEntry*, size_t nPos ); @@ -347,7 +347,7 @@ public: SvxIconChoiceCtrlEntry* pNewCursor, bool bMod1, bool bShift, - bool bPaintSync = false + bool bPaintSync ); bool KeyInput( const KeyEvent& ); void Resize(); @@ -374,9 +374,9 @@ public: void MakeEntryVisible( SvxIconChoiceCtrlEntry* pEntry, bool bBound = true ); void Arrange( - bool bKeepPredecessors = false, - long nSetMaxVirtWidth =0, - long nSetMaxVirtHeight =0 + bool bKeepPredecessors, + long nSetMaxVirtWidth, + long nSetMaxVirtHeight ); Rectangle CalcFocusRect( SvxIconChoiceCtrlEntry* ); @@ -484,11 +484,11 @@ public: void SetEntryHighlightFrame( SvxIconChoiceCtrlEntry* pEntry, - bool bKeepHighlightFlags = false + bool bKeepHighlightFlags ); void DrawHighlightFrame(vcl::RenderContext& rRenderContext, const Rectangle& rBmpRect); - void CallEventListeners( sal_uLong nEvent, void* pData = nullptr ); + void CallEventListeners( sal_uLong nEvent, void* pData ); ::svt::IAccessibleFactory& GetAccessibleFactory() { diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index ef8a25caf956..505090716bf4 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -164,7 +164,7 @@ SvxIconChoiceCtrl_Impl::~SvxIconChoiceCtrl_Impl() { pCurEditedEntry = nullptr; pEdit.disposeAndClear(); - Clear(); + Clear(false); StopEditTimer(); CancelUserEvents(); delete pZOrderList; @@ -924,7 +924,7 @@ bool SvxIconChoiceCtrl_Impl::MouseMove( const MouseEvent& rMEvt ) else if( nWinBits & WB_HIGHLIGHTFRAME ) { SvxIconChoiceCtrlEntry* pEntry = GetEntry( aDocPos, true ); - SetEntryHighlightFrame( pEntry ); + SetEntryHighlightFrame( pEntry, false ); } else return false; @@ -992,7 +992,7 @@ bool SvxIconChoiceCtrl_Impl::KeyInput( const KeyEvent& rKEvt ) SvxIconChoiceCtrlEntry* pNewCursor = GetEntry( nPos ); SvxIconChoiceCtrlEntry* pOldCursor = pCursor; if ( pNewCursor != pOldCursor ) - SetCursor_Impl( pOldCursor, pNewCursor, false, false ); + SetCursor_Impl( pOldCursor, pNewCursor, false, false, false ); return true; } @@ -2657,7 +2657,7 @@ void SvxIconChoiceCtrl_Impl::ClearSelectedRectList() IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, AutoArrangeHdl, Idle *, void) { aAutoArrangeIdle.Stop(); - Arrange( IsAutoArrange() ); + Arrange( IsAutoArrange(), 0, 0 ); } IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, VisRectChangedHdl, Idle *, void) @@ -2777,7 +2777,7 @@ void SvxIconChoiceCtrl_Impl::SetEntryTextMode( SvxIconChoiceCtrlTextMode eMode, if( eTextMode == IcnShowTextDontKnow ) eTextMode = IcnShowTextShort; eTextMode = eMode; - Arrange( true ); + Arrange( true, 0, 0 ); } } else @@ -3420,7 +3420,7 @@ void SvxIconChoiceCtrl_Impl::SetColumn( sal_uInt16 nIndex, const SvxIconChoiceCt nGridDX = pInfo->GetWidth(); if( GetUpdateMode() ) - Arrange( IsAutoArrange() ); + Arrange( IsAutoArrange(), 0, 0 ); } const SvxIconChoiceCtrlColumnInfo* SvxIconChoiceCtrl_Impl::GetColumn( sal_uInt16 nIndex ) const diff --git a/svtools/source/contnr/ivctrl.cxx b/svtools/source/contnr/ivctrl.cxx index 5b48497757f7..7c35e4a12418 100644 --- a/svtools/source/contnr/ivctrl.cxx +++ b/svtools/source/contnr/ivctrl.cxx @@ -90,7 +90,7 @@ void SvtIconChoiceCtrl::dispose() { if (_pImpl) { - _pImpl->CallEventListeners( VCLEVENT_OBJECT_DYING ); + _pImpl->CallEventListeners( VCLEVENT_OBJECT_DYING, nullptr ); _pImpl.reset(); } Control::dispose(); @@ -152,7 +152,7 @@ void SvtIconChoiceCtrl::ArrangeIcons() aFullSize.setWidth ( aFullSize.getWidth()+aEntryRect.GetWidth() ); } - _pImpl->Arrange ( false, aFullSize.getWidth() ); + _pImpl->Arrange ( false, aFullSize.getWidth(), 0 ); } else if ( GetStyle() & WB_ALIGN_LEFT ) { @@ -171,7 +171,7 @@ void SvtIconChoiceCtrl::ArrangeIcons() } else { - _pImpl->Arrange(); + _pImpl->Arrange(false, 0, 0); } _pImpl->Arrange( false, 0, 1000 ); } diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index 028f9a23d50f..1dda5b529bf7 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -3306,7 +3306,7 @@ void SvTreeListBox::SetAlternatingRowColors( bool bEnable ) pEntry->SetBackColor( GetBackground().GetColor() ); mbAlternatingRowColors = bEnable; - pImpl->UpdateAll(); + pImpl->UpdateAll(true); } SvLBoxItem* SvTreeListBox::GetItem(SvTreeListEntry* pEntry,long nX,SvLBoxTab** ppTab) |