summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-20 11:46:49 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-20 11:46:49 +0200
commit173a75bad357c65f4e77dc1688445276bdaeaf9c (patch)
tree4a1a90b58129fed91b79f759a08df4187fc06d29 /svtools
parent9604199a9d6e193a0fbeaa28ae1631216ad473db (diff)
loplugin:defaultparams
Change-Id: I1925768a2ac3fbb83fc52ef742bf1fcfe02173b5
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/imivctl1.cxx6
-rw-r--r--svtools/source/contnr/imivctl2.cxx2
-rw-r--r--svtools/source/contnr/svimpbox.cxx4
-rw-r--r--svtools/source/contnr/treelistbox.cxx2
-rw-r--r--svtools/source/control/asynclink.cxx2
-rw-r--r--svtools/source/control/toolbarmenu.cxx2
-rw-r--r--svtools/source/filter/exportdialog.cxx2
-rw-r--r--svtools/source/misc/templatefoldercache.cxx4
-rw-r--r--svtools/source/uno/popupwindowcontroller.cxx4
9 files changed, 14 insertions, 14 deletions
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx
index 06a7f8173de4..9e17d95afa55 100644
--- a/svtools/source/contnr/imivctl1.cxx
+++ b/svtools/source/contnr/imivctl1.cxx
@@ -1743,7 +1743,7 @@ void SvxIconChoiceCtrl_Impl::SetEntryPos( SvxIconChoiceCtrlEntry* pEntry, const
// output size. The virtual size has to be adapted, because
// AdjustEntryAtGrid depends on it.
const Rectangle& rBoundRect = GetEntryBoundRect( pEntry );
- Rectangle aCenterRect( CalcBmpRect( pEntry, 0 ));
+ Rectangle aCenterRect( CalcBmpRect( pEntry ));
Point aNewPos( AdjustAtGrid( aCenterRect, rBoundRect ) );
Rectangle aNewBoundRect( aNewPos, pEntry->aRect.GetSize());
AdjustVirtSize( aNewBoundRect );
@@ -2817,7 +2817,7 @@ void SvxIconChoiceCtrl_Impl::AdjustAtGrid( const SvxIconChoiceCtrlEntryPtrVec& r
// Decisive (for our eye) is the bitmap, else, the entry might jump too
// much within long texts.
const Rectangle& rBoundRect = GetEntryBoundRect( pCur );
- Rectangle aCenterRect( CalcBmpRect( pCur, 0 ));
+ Rectangle aCenterRect( CalcBmpRect( pCur ));
if( bGo && !pCur->IsPosLocked() )
{
long nWidth = aCenterRect.GetSize().Width();
@@ -3353,7 +3353,7 @@ void SvxIconChoiceCtrl_Impl::SetPositionMode( SvxIconChoiceCtrlPositionMode eMod
}
else if( ePositionMode == IcnViewPositionModeAutoAdjust )
{
- AdjustEntryAtGrid( 0 );
+ AdjustEntryAtGrid();
}
}
diff --git a/svtools/source/contnr/imivctl2.cxx b/svtools/source/contnr/imivctl2.cxx
index da90bfe49eb0..dc0778999ff5 100644
--- a/svtools/source/contnr/imivctl2.cxx
+++ b/svtools/source/contnr/imivctl2.cxx
@@ -74,7 +74,7 @@ void IcnCursor_Impl::ImplCreate()
{
SvxIconChoiceCtrlEntry* pEntry = pView->aEntries[ nCur ];
// const Rectangle& rRect = pView->GetEntryBoundRect( pEntry );
- Rectangle rRect( pView->CalcBmpRect( pEntry,0 ) );
+ Rectangle rRect( pView->CalcBmpRect( pEntry ) );
short nY = (short)( ((rRect.Top()+rRect.Bottom())/2) / nDeltaHeight );
short nX = (short)( ((rRect.Left()+rRect.Right())/2) / nDeltaWidth );
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index 5ba4a954e407..906919144d63 100644
--- a/svtools/source/contnr/svimpbox.cxx
+++ b/svtools/source/contnr/svimpbox.cxx
@@ -293,7 +293,7 @@ void SvImpLBox::Clear()
aContextBmpWidthVector.clear();
- CallEventListeners( VCLEVENT_LISTBOX_ITEMREMOVED, NULL );
+ CallEventListeners( VCLEVENT_LISTBOX_ITEMREMOVED );
}
// *********************************************************************
@@ -3324,7 +3324,7 @@ void SvImpLBox::NotifyTabsChanged()
if( GetUpdateMode() && !(nFlags & F_IGNORE_CHANGED_TABS ) &&
nCurUserEvent == 0 )
{
- nCurUserEvent = Application::PostUserEvent(LINK(this,SvImpLBox,MyUserEvent),nullptr);
+ nCurUserEvent = Application::PostUserEvent(LINK(this,SvImpLBox,MyUserEvent));
}
}
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index f9e18453895a..36a9ccc9b935 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -2621,7 +2621,7 @@ void SvTreeListBox::ModelHasEntryInvalidated( SvTreeListEntry* pEntry )
for( sal_uInt16 nIdx = 0; nIdx < nCount; nIdx++ )
{
SvLBoxItem& rItem = pEntry->GetItem( nIdx );
- rItem.InitViewData( this, pEntry, 0 );
+ rItem.InitViewData( this, pEntry );
}
// repaint
diff --git a/svtools/source/control/asynclink.cxx b/svtools/source/control/asynclink.cxx
index 1ce6f4418855..66390cfefe15 100644
--- a/svtools/source/control/asynclink.cxx
+++ b/svtools/source/control/asynclink.cxx
@@ -60,7 +60,7 @@ void AsynchronLink::Call( void* pObj, bool bAllowDoubles, bool bUseTimer )
else
{
if( _pMutex ) _pMutex->acquire();
- _nEventId = Application::PostUserEvent( LINK( this, AsynchronLink, HandleCall_PostUserEvent), 0 );
+ _nEventId = Application::PostUserEvent( LINK( this, AsynchronLink, HandleCall_PostUserEvent) );
if( _pMutex ) _pMutex->release();
}
}
diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx
index 211459ff74c2..3e44d862c66b 100644
--- a/svtools/source/control/toolbarmenu.cxx
+++ b/svtools/source/control/toolbarmenu.cxx
@@ -1442,7 +1442,7 @@ void ToolbarMenu::implPaint(vcl::RenderContext& rRenderContext, ToolbarMenuEntry
aTmpPos.Y() += nTextOffsetY;
DrawTextFlags nStyle = nTextStyle|DrawTextFlags::Mnemonic;
- rRenderContext.DrawCtrlText(aTmpPos, pEntry->maText, 0, pEntry->maText.getLength(), nStyle, NULL, NULL);
+ rRenderContext.DrawCtrlText(aTmpPos, pEntry->maText, 0, pEntry->maText.getLength(), nStyle);
}
if (pThisOnly && bHighlighted)
diff --git a/svtools/source/filter/exportdialog.cxx b/svtools/source/filter/exportdialog.cxx
index 06ef5f273c80..0278a59399ef 100644
--- a/svtools/source/filter/exportdialog.cxx
+++ b/svtools/source/filter/exportdialog.cxx
@@ -502,7 +502,7 @@ Bitmap ExportDialog::GetGraphicBitmap( SvStream& rInputStream )
Bitmap aRet;
Graphic aGraphic;
GraphicFilter aFilter( false );
- if ( aFilter.ImportGraphic( aGraphic, "", rInputStream, GRFILTER_FORMAT_NOTFOUND, NULL, GraphicFilterImportFlags::NONE, static_cast<com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >*>(NULL), NULL ) == GRFILTER_OK )
+ if ( aFilter.ImportGraphic( aGraphic, "", rInputStream, GRFILTER_FORMAT_NOTFOUND, NULL, GraphicFilterImportFlags::NONE, static_cast<com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >*>(NULL) ) == GRFILTER_OK )
{
aRet = aGraphic.GetBitmap();
}
diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx
index 98e6160404ba..a547dc144098 100644
--- a/svtools/source/misc/templatefoldercache.cxx
+++ b/svtools/source/misc/templatefoldercache.cxx
@@ -563,12 +563,12 @@ namespace svt
{
INetURLObject aParser;
aParser.SetSmartProtocol( INetProtocol::File );
- aParser.SetURL( _rPath, INetURLObject::WAS_ENCODED );
+ aParser.SetURL( _rPath );
if ( INetProtocol::NotValid == aParser.GetProtocol() )
{
OUString sURL;
osl::FileBase::getFileURLFromSystemPath( _rPath, sURL );
- aParser.SetURL( sURL, INetURLObject::WAS_ENCODED );
+ aParser.SetURL( sURL );
}
return aParser.GetMainURL( INetURLObject::DECODE_TO_IURI );
}
diff --git a/svtools/source/uno/popupwindowcontroller.cxx b/svtools/source/uno/popupwindowcontroller.cxx
index a0d7ec634679..af7124508164 100644
--- a/svtools/source/uno/popupwindowcontroller.cxx
+++ b/svtools/source/uno/popupwindowcontroller.cxx
@@ -92,7 +92,7 @@ IMPL_LINK_TYPED( PopupWindowControllerImpl, WindowEventListener, VclWindowEvent&
{
if( mpToolBox )
mpToolBox->CallEventListeners( VCLEVENT_DROPDOWN_OPEN, static_cast<void*>(mpPopupWindow) );
- mpPopupWindow->CallEventListeners( VCLEVENT_WINDOW_GETFOCUS, 0 );
+ mpPopupWindow->CallEventListeners( VCLEVENT_WINDOW_GETFOCUS );
svtools::ToolbarMenu* pToolbarMenu = dynamic_cast< svtools::ToolbarMenu* >( mpPopupWindow.get() );
if( pToolbarMenu )
@@ -105,7 +105,7 @@ IMPL_LINK_TYPED( PopupWindowControllerImpl, WindowEventListener, VclWindowEvent&
{
if( mpPopupWindow )
{
- mpPopupWindow->CallEventListeners( VCLEVENT_WINDOW_LOSEFOCUS, 0 );
+ mpPopupWindow->CallEventListeners( VCLEVENT_WINDOW_LOSEFOCUS );
if( mpToolBox )
mpToolBox->CallEventListeners( VCLEVENT_DROPDOWN_CLOSE, static_cast<void*>(mpPopupWindow) );
}