summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appserv.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/appl/appserv.cxx')
-rw-r--r--sfx2/source/appl/appserv.cxx9
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