From ae03847c2d7e1b670ec085e0418f6f91784a80a0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 19 Oct 2015 17:51:18 +0200 Subject: loplugin:defaultparams Change-Id: I7a836a62f5614415e7aa982133ef7b34262e0bf9 --- starmath/source/accessibility.cxx | 2 +- starmath/source/dialog.cxx | 2 +- starmath/source/edit.cxx | 2 +- starmath/source/rect.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'starmath/source') diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index 843ec7cb96ae..1b859f34dbff 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -1012,7 +1012,7 @@ SfxItemSet SmTextForwarder::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( pEditEngine->HasParaAttrib( nPara, nWhich ) ) aSet.Put( pEditEngine->GetParaAttrib( nPara, nWhich ) ); diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 6d58de60e762..50d65ad29904 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -1312,7 +1312,7 @@ void SmShowSymbolSetWindow::SetScrollBarRange() if (aSymbolSet.size() > static_cast(nColumns * nRows)) { m_pVScrollBar->SetRange(Range(0, ((aSymbolSet.size() + (nColumns - 1)) / nColumns) - nRows)); - m_pVScrollBar->Enable(true); + m_pVScrollBar->Enable(); } else { diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index e7806a41723e..59df24796109 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -560,7 +560,7 @@ void SmEditWindow::CreateEditView() pEditView->SetSelection(eSelection); Update(); - pEditView->ShowCursor(true); + pEditView->ShowCursor(); pEditEngine->SetStatusEventHdl( LINK(this, SmEditWindow, EditStatusHdl) ); SetPointer(pEditView->GetPointer()); diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx index ad8a2e481a34..a0c8c67058f6 100644 --- a/starmath/source/rect.cxx +++ b/starmath/source/rect.cxx @@ -640,7 +640,7 @@ bool SmGetGlyphBoundRect(const vcl::RenderContext &rDev, Rectangle aResult (aPoint, Size(nTextWidth, rDev.GetTextHeight())), aTmp; - bool bSuccess = pGlyphDev->GetTextBoundRect(aTmp, rText, 0, 0); + bool bSuccess = pGlyphDev->GetTextBoundRect(aTmp, rText); OSL_ENSURE( bSuccess, "GetTextBoundRect failed" ); -- cgit