diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-25 17:35:42 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-04 10:11:08 +0200 |
commit | 5285beeaa49f6678b471d472868c305c7d9da5f9 (patch) | |
tree | a3dbd28995142ab16b448f28e95821115ef5408f /sfx2/source | |
parent | aeb41c9b9b7559c6d87bf92807acdc0df9e104cc (diff) |
remove redundant calls to OUString constructor in if expression
Convert code like:
if( aStr == OUString("xxxx") )
to this:
if( aStr == "xxxx" )
Change-Id: I8d201f048477731eff590fb988259ef0935c080c
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/appl/lnkbase2.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx index 23f016a282f9..3cdc5b065f36 100644 --- a/sfx2/source/appl/lnkbase2.cxx +++ b/sfx2/source/appl/lnkbase2.cxx @@ -361,7 +361,7 @@ void SvBaseLink::_GetRealObject( sal_Bool bConnect) { OUString sServer; if( pImpl->m_pLinkMgr->GetDisplayNames( this, &sServer ) && - sServer == OUString(GetpApp()->GetAppName()) ) // internal Link !!! + sServer == GetpApp()->GetAppName() ) // internal Link !!! { // so that the Internal link can be created! nObjType = OBJECT_INTERN; diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index b97062248f74..ad869f5083c7 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -1411,7 +1411,7 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(sal_uInt16 nFlags) size_t nCount = aStrings.size(); size_t nPos = 0; while(nPos < nCount && pEntry && - aStrings[nPos] == OUString(aFmtLb.GetEntryText(pEntry))) + aStrings[nPos] == aFmtLb.GetEntryText(pEntry)) { ++nPos; pEntry = aFmtLb.Next( pEntry ); diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 1ed9433f8a72..11a81a049d62 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -3063,7 +3063,7 @@ sal_Bool SfxObjectShell::SaveAsOwnFormat( SfxMedium& rMedium ) const SfxFilter* pFilter = rMedium.GetFilter(); bool bChart = false; - if(pFilter->GetName() == OUString("chart8")) + if(pFilter->GetName() == "chart8") bChart = true; SetupStorage( xStorage, nVersion, bTemplate, bChart ); |