diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2017-04-17 18:41:31 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2017-04-18 17:55:28 +0200 |
commit | 9f1046587a26a3f673b465ad8dfe911905e71c5f (patch) | |
tree | 829e44583bfa35724293a200a57bfeee5b83ca2b /sfx2 | |
parent | 54838cd2ef8dfbee5112ed0fee19eb2ece49706a (diff) |
Remove isEmpty check on (just set) non-empty sURL
Change-Id: I669b720c976c51d248dadb11b5e93ab1708ccfbb
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 6127ce8ab611..465bd904ba1a 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -1766,12 +1766,8 @@ SfxViewShell* SfxViewFrame::LoadViewIntoFrame_Impl( const SfxObjectShell& i_rDoc else aTransformLoadArgs.remove( "Hidden" ); - OUString sURL( "private:object" ); - if ( sURL.isEmpty() ) - sURL = i_rDoc.GetFactory().GetFactoryURL(); - Reference< XComponentLoader > xLoader( i_rFrame, UNO_QUERY_THROW ); - xLoader->loadComponentFromURL( sURL, "_self", 0, + xLoader->loadComponentFromURL( "private:object", "_self", 0, aTransformLoadArgs.getPropertyValues() ); SfxViewShell* pViewShell = SfxViewShell::Get( i_rFrame->getController() ); |