diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-09-19 10:10:43 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-09-19 11:22:50 +0200 |
commit | 13ddacd6305dfe469c5e01e91f3d93f037b14b9b (patch) | |
tree | 45b1aad703ab323d87f30857bda6d4ce9012cc9f /sfx2 | |
parent | adbf7da7d1d9a1701c3fccbfbbf9d749d6478e6c (diff) |
Bin pointless function
Change-Id: I70e124359364275dc1a10d1f818bac14e0563173
Reviewed-on: https://gerrit.libreoffice.org/42446
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 89c01a354114..b0ad59f5e7c0 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -1247,17 +1247,12 @@ namespace return _pFallback; } - OUString lcl_getBasicIDEServiceName() - { - return OUString( "com.sun.star.script.BasicIDE"); - } - SfxViewFrame* lcl_getBasicIDEViewFrame( SfxObjectShell const * i_pBasicIDE ) { SfxViewFrame* pView = SfxViewFrame::GetFirst( i_pBasicIDE ); while ( pView ) { - if ( pView->GetObjectShell()->GetFactory().GetDocumentServiceName() == lcl_getBasicIDEServiceName() ) + if ( pView->GetObjectShell()->GetFactory().GetDocumentServiceName() == "com.sun.star.script.BasicIDE" ) break; pView = SfxViewFrame::GetNext( *pView, i_pBasicIDE ); } @@ -1384,7 +1379,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq ) SfxViewFrame* pView = lcl_getBasicIDEViewFrame( nullptr ); if ( !pView ) { - SfxObjectShell* pBasicIDE = SfxObjectShell::CreateObject( lcl_getBasicIDEServiceName() ); + SfxObjectShell* pBasicIDE = SfxObjectShell::CreateObject( "com.sun.star.script.BasicIDE" ); pBasicIDE->DoInitNew(); pBasicIDE->SetModified( false ); try |