summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-19 17:51:18 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-19 17:51:18 +0200
commitae03847c2d7e1b670ec085e0418f6f91784a80a0 (patch)
treecaaf35e05e10121eb72b3f399f6b863384a7274e
parentf17a3dc9420a2380a7c52192565ea4511471c6cc (diff)
loplugin:defaultparams
Change-Id: I7a836a62f5614415e7aa982133ef7b34262e0bf9
-rw-r--r--starmath/source/accessibility.cxx2
-rw-r--r--starmath/source/dialog.cxx2
-rw-r--r--starmath/source/edit.cxx2
-rw-r--r--starmath/source/rect.cxx2
4 files changed, 4 insertions, 4 deletions
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<size_t>(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" );