loplugin:defaultparams

Change-Id: Ib596b759e876a4a7d341e1b476bfec9f7a54069e
This commit is contained in:
Stephan Bergmann 2015-10-20 11:46:38 +02:00
parent 553528de6a
commit df7390e6c9
5 changed files with 10 additions and 10 deletions

View File

@ -78,7 +78,7 @@ void Test::setUp()
SfxModelFlags::EMBEDDED_OBJECT |
SfxModelFlags::DISABLE_EMBEDDED_SCRIPTS |
SfxModelFlags::DISABLE_DOCUMENT_RECOVERY);
m_xDocShRef->DoInitNew(0);
m_xDocShRef->DoInitNew();
SfxViewFrame *pViewFrame = SfxViewFrame::LoadHiddenDocument(*m_xDocShRef, 0);

View File

@ -968,7 +968,7 @@ OUString SmTextForwarder::GetText( const ESelection& rSel ) const
EditEngine *pEditEngine = rEditAcc.GetEditEngine();
OUString aRet;
if (pEditEngine)
aRet = pEditEngine->GetText( rSel, LINEEND_LF );
aRet = pEditEngine->GetText( rSel );
return convertLineEnd(aRet, GetSystemLineEnd());
}

View File

@ -730,7 +730,7 @@ bool SmDocShell::ConvertFrom(SfxMedium &rMedium)
Repaint();
}
FinishedLoading( SfxLoadedFlags::ALL );
FinishedLoading();
return bSuccess;
}
@ -780,7 +780,7 @@ bool SmDocShell::Load( SfxMedium& rMedium )
Repaint();
}
FinishedLoading( SfxLoadedFlags::ALL );
FinishedLoading();
return bRet;
}
@ -816,7 +816,7 @@ bool SmDocShell::ReplaceBadChars()
if (pEditEngine)
{
OUStringBuffer aBuf( pEditEngine->GetText( LINEEND_LF ) );
OUStringBuffer aBuf( pEditEngine->GetText() );
for (sal_Int32 i = 0; i < aBuf.getLength(); ++i)
{
@ -839,7 +839,7 @@ void SmDocShell::UpdateText()
{
if (pEditEngine && pEditEngine->IsModified())
{
OUString aEngTxt( pEditEngine->GetText( LINEEND_LF ) );
OUString aEngTxt( pEditEngine->GetText() );
if (GetText() != aEngTxt)
SetText( aEngTxt );
}

View File

@ -245,7 +245,7 @@ void SmEditWindow::DataChanged( const DataChangedEvent& )
// forces new settings to be used
// unfortunately this resets the whole edit engine
// thus we need to save at least the text
OUString aTxt( pEditEngine->GetText( LINEEND_LF ) );
OUString aTxt( pEditEngine->GetText() );
pEditEngine->Clear(); //incorrect font size
pEditEngine->SetText( aTxt );
}
@ -657,7 +657,7 @@ OUString SmEditWindow::GetText() const
EditEngine *pEditEngine = const_cast< SmEditWindow* >(this)->GetEditEngine();
OSL_ENSURE( pEditEngine, "EditEngine missing" );
if (pEditEngine)
aText = pEditEngine->GetText( LINEEND_LF );
aText = pEditEngine->GetText();
return aText;
}
@ -739,7 +739,7 @@ bool SmEditWindow::IsAllSelected() const
sal_Int32 nParaCnt = pEditEngine->GetParagraphCount();
if (!(nParaCnt - 1))
{
sal_Int32 nTextLen = pEditEngine->GetText( LINEEND_LF ).getLength();
sal_Int32 nTextLen = pEditEngine->GetText().getLength();
bRes = !eSelection.nStartPos && (eSelection.nEndPos == nTextLen - 1);
}
else

View File

@ -2046,7 +2046,7 @@ void SmViewShell::Activate( bool bIsMDIActivate )
//! synchronize the GraphicWindow display with the text in the
//! EditEngine.
SmDocShell *pDoc = GetDoc();
pDoc->SetText( pDoc->GetEditEngine().GetText( LINEEND_LF ) );
pDoc->SetText( pDoc->GetEditEngine().GetText() );
if ( bIsMDIActivate )
pEdit->GrabFocus();