Kaydet (Commit) ae03847c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:defaultparams

Change-Id: I7a836a62f5614415e7aa982133ef7b34262e0bf9
üst f17a3dc9
...@@ -1012,7 +1012,7 @@ SfxItemSet SmTextForwarder::GetParaAttribs( sal_Int32 nPara ) const ...@@ -1012,7 +1012,7 @@ SfxItemSet SmTextForwarder::GetParaAttribs( sal_Int32 nPara ) const
sal_uInt16 nWhich = EE_PARA_START; sal_uInt16 nWhich = EE_PARA_START;
while( nWhich <= EE_PARA_END ) while( nWhich <= EE_PARA_END )
{ {
if( aSet.GetItemState( nWhich, true ) != SfxItemState::SET ) if( aSet.GetItemState( nWhich ) != SfxItemState::SET )
{ {
if( pEditEngine->HasParaAttrib( nPara, nWhich ) ) if( pEditEngine->HasParaAttrib( nPara, nWhich ) )
aSet.Put( pEditEngine->GetParaAttrib( nPara, nWhich ) ); aSet.Put( pEditEngine->GetParaAttrib( nPara, nWhich ) );
......
...@@ -1312,7 +1312,7 @@ void SmShowSymbolSetWindow::SetScrollBarRange() ...@@ -1312,7 +1312,7 @@ void SmShowSymbolSetWindow::SetScrollBarRange()
if (aSymbolSet.size() > static_cast<size_t>(nColumns * nRows)) if (aSymbolSet.size() > static_cast<size_t>(nColumns * nRows))
{ {
m_pVScrollBar->SetRange(Range(0, ((aSymbolSet.size() + (nColumns - 1)) / nColumns) - nRows)); m_pVScrollBar->SetRange(Range(0, ((aSymbolSet.size() + (nColumns - 1)) / nColumns) - nRows));
m_pVScrollBar->Enable(true); m_pVScrollBar->Enable();
} }
else else
{ {
......
...@@ -560,7 +560,7 @@ void SmEditWindow::CreateEditView() ...@@ -560,7 +560,7 @@ void SmEditWindow::CreateEditView()
pEditView->SetSelection(eSelection); pEditView->SetSelection(eSelection);
Update(); Update();
pEditView->ShowCursor(true); pEditView->ShowCursor();
pEditEngine->SetStatusEventHdl( LINK(this, SmEditWindow, EditStatusHdl) ); pEditEngine->SetStatusEventHdl( LINK(this, SmEditWindow, EditStatusHdl) );
SetPointer(pEditView->GetPointer()); SetPointer(pEditView->GetPointer());
......
...@@ -640,7 +640,7 @@ bool SmGetGlyphBoundRect(const vcl::RenderContext &rDev, ...@@ -640,7 +640,7 @@ bool SmGetGlyphBoundRect(const vcl::RenderContext &rDev,
Rectangle aResult (aPoint, Size(nTextWidth, rDev.GetTextHeight())), Rectangle aResult (aPoint, Size(nTextWidth, rDev.GetTextHeight())),
aTmp; aTmp;
bool bSuccess = pGlyphDev->GetTextBoundRect(aTmp, rText, 0, 0); bool bSuccess = pGlyphDev->GetTextBoundRect(aTmp, rText);
OSL_ENSURE( bSuccess, "GetTextBoundRect failed" ); OSL_ENSURE( bSuccess, "GetTextBoundRect failed" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment