[Libreoffice-commits] core.git: sfx2/source
Tor Lillqvist
tml at collabora.com
Tue Sep 19 09:23:16 UTC 2017
sfx2/source/appl/appserv.cxx | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
New commits:
commit 13ddacd6305dfe469c5e01e91f3d93f037b14b9b
Author: Tor Lillqvist <tml at collabora.com>
Date: Tue Sep 19 10:10:43 2017 +0300
Bin pointless function
Change-Id: I70e124359364275dc1a10d1f818bac14e0563173
Reviewed-on: https://gerrit.libreoffice.org/42446
Reviewed-by: Tor Lillqvist <tml at collabora.com>
Tested-by: Tor Lillqvist <tml at collabora.com>
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
More information about the Libreoffice-commits
mailing list