summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-19 17:52:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-19 17:52:06 +0200
commit165c643c936dda1a75e084157a03d0f52a5ea381 (patch)
treee631d5b9b1d0c91042cefdc78c1f3ba3bebfe7ba /vcl/source
parentf2937f2a6f0355005875e1e6409a09b28193b448 (diff)
loplugin:defaultparams
Change-Id: I8db42173f116372b1c849284540c111635c3582e
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/ilstbox.cxx4
-rw-r--r--vcl/source/control/spinfld.cxx2
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx46
-rw-r--r--vcl/source/gdi/pngwrite.cxx2
-rw-r--r--vcl/source/window/dialog.cxx2
-rw-r--r--vcl/source/window/menu.cxx2
-rw-r--r--vcl/source/window/printdlg.cxx6
-rw-r--r--vcl/source/window/stacking.cxx2
-rw-r--r--vcl/source/window/toolbox2.cxx12
-rw-r--r--vcl/source/window/winproc.cxx2
10 files changed, 40 insertions, 40 deletions
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 5d06f468fa7f..92ea38361f31 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -921,7 +921,7 @@ void ImplListBoxWindow::MouseMove( const MouseEvent& rMEvt )
( ( nSelect != mnCurrentPos ) || !GetEntryList()->GetSelectEntryCount() || ( nSelect != GetEntryList()->GetSelectEntryPos( 0 ) ) ) )
{
mbTrackingSelect = true;
- if ( SelectEntries( nSelect, LET_TRACKING, false, false ) )
+ if ( SelectEntries( nSelect, LET_TRACKING ) )
{
if ( mbStackMode )
{
@@ -1691,7 +1691,7 @@ void ImplListBoxWindow::SelectEntry( vcl::StringEntryIdentifier _entry )
// actually select
mnCurrentPos = nSelect;
- if ( SelectEntries( nSelect, LET_KEYMOVE, false, false ) )
+ if ( SelectEntries( nSelect, LET_KEYMOVE ) )
{
mbTravelSelect = true;
mnSelectModifier = 0;
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx
index b541b341c500..b21c70344135 100644
--- a/vcl/source/control/spinfld.cxx
+++ b/vcl/source/control/spinfld.cxx
@@ -1044,7 +1044,7 @@ void SpinField::Draw(OutputDevice* pDev, const Point& rPos, const Size& rSize, D
if (GetStyle() & WB_SPIN)
{
- ImplDrawSpinButton(*pDev, this, aUp, aDown, false, false, true, true);
+ ImplDrawSpinButton(*pDev, this, aUp, aDown, false, false);
}
pDev->Pop();
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 3b93fc77db15..e9ab3b6d57ba 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -1437,7 +1437,7 @@ void PDFWriterImpl::PDFPage::appendRect( const Rectangle& rRect, OStringBuffer&
rBuffer.append( ' ' );
appendMappedLength( (sal_Int32)rRect.GetWidth(), rBuffer, false );
rBuffer.append( ' ' );
- appendMappedLength( (sal_Int32)rRect.GetHeight(), rBuffer, true );
+ appendMappedLength( (sal_Int32)rRect.GetHeight(), rBuffer );
rBuffer.append( " re" );
}
@@ -1701,31 +1701,31 @@ void PDFWriterImpl::PDFPage::appendWaveLine( sal_Int32 nWidth, sal_Int32 nY, sal
nDelta = 1;
rBuffer.append( "0 " );
- appendMappedLength( nY, rBuffer, true );
+ appendMappedLength( nY, rBuffer );
rBuffer.append( " m\n" );
for( sal_Int32 n = 0; n < nWidth; )
{
n += nDelta;
appendMappedLength( n, rBuffer, false );
rBuffer.append( ' ' );
- appendMappedLength( nDelta+nY, rBuffer, true );
+ appendMappedLength( nDelta+nY, rBuffer );
rBuffer.append( ' ' );
n += nDelta;
appendMappedLength( n, rBuffer, false );
rBuffer.append( ' ' );
- appendMappedLength( nY, rBuffer, true );
+ appendMappedLength( nY, rBuffer );
rBuffer.append( " v " );
if( n < nWidth )
{
n += nDelta;
appendMappedLength( n, rBuffer, false );
rBuffer.append( ' ' );
- appendMappedLength( nY-nDelta, rBuffer, true );
+ appendMappedLength( nY-nDelta, rBuffer );
rBuffer.append( ' ' );
n += nDelta;
appendMappedLength( n, rBuffer, false );
rBuffer.append( ' ' );
- appendMappedLength( nY, rBuffer, true );
+ appendMappedLength( nY, rBuffer );
rBuffer.append( " v\n" );
}
}
@@ -8725,7 +8725,7 @@ void PDFWriterImpl::drawVerticalGlyphs(
rLine.append( " /F" );
rLine.append( rGlyphs[i].m_nMappedFontId );
rLine.append( ' ' );
- m_aPages.back().appendMappedLength( nFontHeight, rLine, true );
+ m_aPages.back().appendMappedLength( nFontHeight, rLine );
rLine.append( " Tf" );
}
rLine.append( "<" );
@@ -8779,7 +8779,7 @@ void PDFWriterImpl::drawHorizontalGlyphs(
Matrix3 aMat;
if( nRun == 0 && fAngle == 0.0 && fXScale == 1.0 && fSkew == 0.0 )
{
- m_aPages.back().appendPoint( aCurPos, rLine, false );
+ m_aPages.back().appendPoint( aCurPos, rLine );
rLine.append( " Td " );
}
else
@@ -8796,7 +8796,7 @@ void PDFWriterImpl::drawHorizontalGlyphs(
rLine.append( "/F" );
rLine.append( rGlyphs[nBeginRun].m_nMappedFontId );
rLine.append( ' ' );
- m_aPages.back().appendMappedLength( nFontHeight, rLine, true );
+ m_aPages.back().appendMappedLength( nFontHeight, rLine );
rLine.append( " Tf" );
// output glyphs using Tj or TJ
@@ -9657,7 +9657,7 @@ void PDFWriterImpl::drawStraightTextLine( OStringBuffer& aLine, long nWidth, Fon
if ( nLineHeight )
{
- m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine );
aLine.append( " w " );
appendStrokingColor( aColor, aLine );
aLine.append( "\n" );
@@ -9728,20 +9728,20 @@ void PDFWriterImpl::drawStraightTextLine( OStringBuffer& aLine, long nWidth, Fon
}
aLine.append( "0 " );
- m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine );
aLine.append( " m " );
m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine, false );
aLine.append( ' ' );
- m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine );
aLine.append( " l S\n" );
if ( eTextLine == UNDERLINE_DOUBLE )
{
aLine.append( "0 " );
- m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine );
aLine.append( " m " );
m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine, false );
aLine.append( ' ' );
- m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine );
aLine.append( " l S\n" );
}
}
@@ -9785,27 +9785,27 @@ void PDFWriterImpl::drawStrikeoutLine( OStringBuffer& aLine, long nWidth, FontSt
if ( nLineHeight )
{
- m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)nLineHeight, aLine );
aLine.append( " w " );
appendStrokingColor( aColor, aLine );
aLine.append( "\n" );
aLine.append( "0 " );
- m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine );
aLine.append( " m " );
- m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine );
aLine.append( ' ' );
- m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos), aLine );
aLine.append( " l S\n" );
if ( eStrikeout == STRIKEOUT_DOUBLE )
{
aLine.append( "0 " );
- m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine );
aLine.append( " m " );
- m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)nWidth, aLine );
aLine.append( ' ' );
- m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)(-nLinePos2-nLineHeight), aLine );
aLine.append( " l S\n" );
}
}
@@ -11738,7 +11738,7 @@ void PDFWriterImpl::drawGradient( const Rectangle& rRect, const Gradient& rGradi
aLine.append( "0 0 " );
m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetWidth(), aLine, false );
aLine.append( ' ' );
- m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetHeight(), aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetHeight(), aLine );
aLine.append( " re W n\n" );
aLine.append( "/P" );
@@ -11749,7 +11749,7 @@ void PDFWriterImpl::drawGradient( const Rectangle& rRect, const Gradient& rGradi
aLine.append( "Q 0 0 " );
m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetWidth(), aLine, false );
aLine.append( ' ' );
- m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetHeight(), aLine, true );
+ m_aPages.back().appendMappedLength( (sal_Int32)rRect.GetHeight(), aLine );
aLine.append( " re S " );
}
aLine.append( "Q\n" );
diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx
index 63a6565e862a..88ddc059400a 100644
--- a/vcl/source/gdi/pngwrite.cxx
+++ b/vcl/source/gdi/pngwrite.cxx
@@ -454,7 +454,7 @@ void PNGWriterImpl::ImplWriteIDAT()
{
for (nY = 1; nY < mnHeight; nY += 2)
{
- mpZCodec.Write(aOStm, mpDeflateInBuf, ImplGetFilter (nY, 0));
+ mpZCodec.Write(aOStm, mpDeflateInBuf, ImplGetFilter (nY));
}
}
}
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 04bfe04a503d..ea24882f7bba 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -829,7 +829,7 @@ bool Dialog::ImplStartExecuteModal()
pSVData->maWinData.mpTrackWin->EndTracking( TrackingEventFlags::Cancel );
if ( pSVData->maWinData.mpCaptureWin )
pSVData->maWinData.mpCaptureWin->ReleaseMouse();
- EnableInput( true );
+ EnableInput();
if ( GetParent() )
{
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 4f63cb6120e2..6ca2bd38b9bd 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -2256,7 +2256,7 @@ void Menu::RemoveDisabledEntries( bool bCheckPopups, bool bRemoveEmptyPopups )
if ( bCheckPopups && pItem->pSubMenu )
{
- pItem->pSubMenu->RemoveDisabledEntries( true );
+ pItem->pSubMenu->RemoveDisabledEntries();
if ( bRemoveEmptyPopups && !pItem->pSubMenu->GetItemCount() )
bRemove = true;
}
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index f11cb96982dd..d741dd015f00 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -1179,7 +1179,7 @@ void PrintDialog::setupOptionalUI()
if (!maNUpPage.mpBrochureBtn->IsVisible() && maNUpPage.mpPagesBtn->IsVisible())
{
maNUpPage.mpPagesBoxTitleTxt->SetText( maNUpPage.mpPagesBtn->GetText() );
- maNUpPage.mpPagesBoxTitleTxt->Show( true );
+ maNUpPage.mpPagesBoxTitleTxt->Show();
maNUpPage.mpPagesBtn->Show( false );
}
@@ -1527,7 +1527,7 @@ IMPL_LINK_TYPED( PrintDialog, SelectHdl, ListBox&, rBox, void )
maPController->resetPrinterOptions( maOptionsPage.mpToFileBox->IsChecked() );
// update text fields
updatePrinterText();
- preparePreview( true );
+ preparePreview();
}
else if( &rBox == maNUpPage.mpNupOrientationBox || &rBox == maNUpPage.mpNupOrderBox )
{
@@ -1640,7 +1640,7 @@ IMPL_LINK_TYPED( PrintDialog, ClickHdl, Button*, pButton, void )
maPController->setupPrinter( this );
// tdf#63905 don't use cache: page size may change
- preparePreview( true );
+ preparePreview();
}
checkControlDependencies();
}
diff --git a/vcl/source/window/stacking.cxx b/vcl/source/window/stacking.cxx
index bd1c0949401b..3a3e8730565f 100644
--- a/vcl/source/window/stacking.cxx
+++ b/vcl/source/window/stacking.cxx
@@ -829,7 +829,7 @@ void Window::ImplUpdateOverlapWindowPtr( bool bNewFrame )
}
if ( bVisible )
- Show( true );
+ Show();
}
SystemWindow* Window::GetSystemWindow() const
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 6b570f92a551..f0e5008e6982 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -657,7 +657,7 @@ void ToolBox::InsertSpace( sal_uInt16 nPos )
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
mpData->ImplClearLayoutData();
- ImplInvalidate( false );
+ ImplInvalidate();
// Notify
sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nPos);
@@ -675,7 +675,7 @@ void ToolBox::InsertSeparator( sal_uInt16 nPos, sal_uInt16 nPixSize )
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
mpData->ImplClearLayoutData();
- ImplInvalidate( false );
+ ImplInvalidate();
// Notify
sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nPos);
@@ -691,7 +691,7 @@ void ToolBox::InsertBreak( sal_uInt16 nPos )
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
mpData->ImplClearLayoutData();
- ImplInvalidate( false );
+ ImplInvalidate();
// Notify
sal_uInt16 nNewPos = sal::static_int_cast<sal_uInt16>(( nPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nPos);
@@ -750,7 +750,7 @@ void ToolBox::CopyItem( const ToolBox& rToolBox, sal_uInt16 nItemId,
mpData->m_aItems.insert( (nNewPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nNewPos : mpData->m_aItems.end(), aNewItem );
mpData->ImplClearLayoutData();
// redraw ToolBox
- ImplInvalidate( false );
+ ImplInvalidate();
// Notify
sal_uInt16 nNewPos2 = sal::static_int_cast<sal_uInt16>(( nNewPos == TOOLBOX_APPEND ) ? ( mpData->m_aItems.size() - 1 ) : nNewPos);
@@ -1520,7 +1520,7 @@ void ToolBox::ShowItem( sal_uInt16 nItemId, bool bVisible )
if ( pItem->mbVisible != bVisible )
{
pItem->mbVisible = bVisible;
- ImplInvalidate( false );
+ ImplInvalidate();
}
}
}
@@ -1857,7 +1857,7 @@ IMPL_LINK_TYPED( ToolBox, ImplCustomMenuListener, VclMenuEvent&, rEvent, void )
{
sal_uInt16 id = GetMenu()->GetItemId( rEvent.GetItemPos() );
if( id >= TOOLBOX_MENUITEM_START )
- TriggerItem( id - TOOLBOX_MENUITEM_START, false );
+ TriggerItem( id - TOOLBOX_MENUITEM_START );
}
}
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index 33aa9fbb9cf2..1ee1661aac0f 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -1054,7 +1054,7 @@ static bool ImplHandleKey( vcl::Window* pWindow, MouseNotifyEvent nSVEvent,
// ContextMenu
if ( (nCode == KEY_CONTEXTMENU) || ((nCode == KEY_F10) && aKeyCode.IsShift() && !aKeyCode.IsMod1() && !aKeyCode.IsMod2() ) )
- bRet = !ImplCallCommand( pChild, CommandEventId::ContextMenu, NULL, false );
+ bRet = !ImplCallCommand( pChild, CommandEventId::ContextMenu, NULL );
else if ( ( (nCode == KEY_F2) && aKeyCode.IsShift() ) || ( (nCode == KEY_F1) && aKeyCode.IsMod1() ) ||
// #101999# no active help when focus in toolbox, simulate BallonHelp instead
( (nCode == KEY_F1) && aKeyCode.IsShift() && bToolboxFocus ) )