summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app/docsh.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:37:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:37:55 +0100
commit42cf4f9a2700e5d8ba5f551be2355cb827f4c5bf (patch)
tree774156f03d654c4df3e368fe10c94b5a086a7ddd /sw/source/uibase/app/docsh.cxx
parent2f88f0adf0f787ae1e1a2a5ac2156b347984fd4a (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I55970d363ab53eb78d580192006e52d9240d46fb
Diffstat (limited to 'sw/source/uibase/app/docsh.cxx')
-rw-r--r--sw/source/uibase/app/docsh.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/app/docsh.cxx b/sw/source/uibase/app/docsh.cxx
index 9cdaceec28fb..37304d230101 100644
--- a/sw/source/uibase/app/docsh.cxx
+++ b/sw/source/uibase/app/docsh.cxx
@@ -276,7 +276,7 @@ bool SwDocShell::ConvertFrom( SfxMedium& rMedium )
SW_MOD()->SetEmbeddedLoadSave( false );
- SetError( nErr, OUString( OSL_LOG_PREFIX ) );
+ SetError( nErr, OSL_LOG_PREFIX );
bool bOk = !IsError( nErr );
if (bOk && !m_pDoc->IsInLoadAsynchron())
@@ -367,7 +367,7 @@ bool SwDocShell::Save()
}
SW_MOD()->SetEmbeddedLoadSave( false );
}
- SetError( nErr ? nErr : nVBWarning, OUString( OSL_LOG_PREFIX ) );
+ SetError( nErr ? nErr : nVBWarning, OSL_LOG_PREFIX );
SfxViewFrame *const pFrm =
(m_pWrtShell) ? m_pWrtShell->GetView().GetViewFrame() : nullptr;
@@ -519,7 +519,7 @@ bool SwDocShell::SaveAs( SfxMedium& rMedium )
m_pDoc->cleanupUnoCrsrTbl();
}
- SetError( nErr ? nErr : nVBWarning, OUString( OSL_LOG_PREFIX ) );
+ SetError( nErr ? nErr : nVBWarning, OSL_LOG_PREFIX );
return !IsError( nErr );
}
@@ -573,7 +573,7 @@ bool SwDocShell::ConvertTo( SfxMedium& rMedium )
OSL_ENSURE( !xStg->GetError(), "No storage available for storing VBA macros!" );
if ( !xStg->GetError() )
{
- nVBWarning = SaveOrDelMSVBAStorage( (SfxObjectShell&) *this, *xStg, bSave, OUString("Macros") );
+ nVBWarning = SaveOrDelMSVBAStorage( (SfxObjectShell&) *this, *xStg, bSave, "Macros" );
xStg->Commit();
m_pDoc->SetContainsMSVBasic( true );
}
@@ -603,7 +603,7 @@ bool SwDocShell::ConvertTo( SfxMedium& rMedium )
Sequence<OUString> aModNames = xLib->getElementNames();
if(aModNames.getLength())
{
- SetError(WARN_SWG_HTML_NO_MACROS, OUString( OSL_LOG_PREFIX ) );
+ SetError(WARN_SWG_HTML_NO_MACROS, OSL_LOG_PREFIX );
break;
}
}
@@ -759,7 +759,7 @@ bool SwDocShell::ConvertTo( SfxMedium& rMedium )
}
SW_MOD()->SetEmbeddedLoadSave( false );
- SetError( nErrno ? nErrno : nVBWarning, OUString( OSL_LOG_PREFIX ) );
+ SetError( nErrno ? nErrno : nVBWarning, OSL_LOG_PREFIX );
if( !rMedium.IsStorage() )
rMedium.CloseOutStream();