summaryrefslogtreecommitdiff
path: root/sfx2/source/view/viewfrm2.cxx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2017-03-19 12:06:20 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2017-03-19 17:12:25 +0100
commite256519a629e88c624c52916f1c38f774cfd445c (patch)
tree79b4b6cd8d222302500684763dd4056ff4ed64d6 /sfx2/source/view/viewfrm2.cxx
parent4a268ebc3f57f4e896bb53b8ca85747895739f24 (diff)
OUString-related simplifications
Change-Id: I2f4099410bcdb9e04583cd37bf63ef86ce81f7e5
Diffstat (limited to 'sfx2/source/view/viewfrm2.cxx')
-rw-r--r--sfx2/source/view/viewfrm2.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/sfx2/source/view/viewfrm2.cxx b/sfx2/source/view/viewfrm2.cxx
index 56afe2fcb781..294e64f2ad91 100644
--- a/sfx2/source/view/viewfrm2.cxx
+++ b/sfx2/source/view/viewfrm2.cxx
@@ -140,8 +140,7 @@ void SfxViewFrame::UpdateTitle()
OUString aSbxName = pObjSh->SfxShell::GetName();
if ( IsVisible() )
{
- aSbxName += ":";
- aSbxName += OUString::number(m_pImpl->nDocViewNo);
+ aSbxName += ":" + OUString::number(m_pImpl->nDocViewNo);
}
SetName( aSbxName );
@@ -213,11 +212,10 @@ void SfxViewFrame::Exec_Impl(SfxRequest &rReq )
}
SfxRequest aReq( SID_OPENDOC, SfxCallMode::SYNCHRON, GetPool() );
- OUString aFact("private:factory/");
- aFact += aFactName;
+ const OUString aFact("private:factory/" + aFactName);
aReq.AppendItem( SfxStringItem( SID_FILE_NAME, aFact ) );
aReq.AppendItem( SfxFrameItem( SID_DOCFRAME, &GetFrame() ) );
- aReq.AppendItem( SfxStringItem( SID_TARGETNAME, OUString( "_blank" ) ) );
+ aReq.AppendItem( SfxStringItem( SID_TARGETNAME, "_blank" ) );
SfxGetpApp()->ExecuteSlot( aReq );
const SfxViewFrameItem* pItem = dynamic_cast<const SfxViewFrameItem*>( aReq.GetReturnValue() );
if ( pItem )
@@ -293,9 +291,7 @@ void SfxViewFrame::GetState_Impl( SfxItemSet &rSet )
{
if ( !m_pImpl->aFactoryName.isEmpty() )
{
- OUString aFact("private:factory/");
- aFact += m_pImpl->aFactoryName;
- rSet.Put( SfxStringItem( nWhich, aFact ) );
+ rSet.Put( SfxStringItem( nWhich, "private:factory/"+m_pImpl->aFactoryName ) );
}
break;
}