From b93a015f9bbed007a8800ef040ec2b6211d33858 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Thu, 16 Mar 2017 21:21:25 +0100 Subject: Use SfxObjectFactory::GetFactoryName/URL instead of OUString::createFromAscii( GetShortName() ), in one case manually added to factory URL prefix. Change-Id: I762fc1bcd6dcf7246531816faad2682caf9133fb Reviewed-on: https://gerrit.libreoffice.org/35371 Tested-by: Jenkins Reviewed-by: Matteo Casalin --- sc/source/ui/docshell/docsh4.cxx | 2 +- sc/source/ui/miscdlgs/instbdlg.cxx | 3 +-- sc/source/ui/miscdlgs/linkarea.cxx | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'sc/source') diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index 53b88a7a7fb0..1ee2f8bfa646 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -729,7 +729,7 @@ void ScDocShell::Execute( SfxRequest& rReq ) pImpl->pRequest = new SfxRequest( rReq ); delete pImpl->pDocInserter; pImpl->pDocInserter = new ::sfx2::DocumentInserter( - OUString::createFromAscii( ScDocShell::Factory().GetShortName() ), false ); + ScDocShell::Factory().GetFactoryName(), false ); pImpl->pDocInserter->StartExecuteModal( LINK( this, ScDocShell, DialogClosedHdl ) ); return ; } diff --git a/sc/source/ui/miscdlgs/instbdlg.cxx b/sc/source/ui/miscdlgs/instbdlg.cxx index 241b370ac4d9..27e6ff5f56dc 100644 --- a/sc/source/ui/miscdlgs/instbdlg.cxx +++ b/sc/source/ui/miscdlgs/instbdlg.cxx @@ -274,8 +274,7 @@ IMPL_LINK_NOARG(ScInsertTableDlg, ChoiceHdl_Impl, Button*, void) IMPL_LINK_NOARG(ScInsertTableDlg, BrowseHdl_Impl, Button*, void) { delete pDocInserter; - pDocInserter = new ::sfx2::DocumentInserter( - OUString::createFromAscii( ScDocShell::Factory().GetShortName() ) ); + pDocInserter = new ::sfx2::DocumentInserter(ScDocShell::Factory().GetFactoryName()); pDocInserter->StartExecuteModal( LINK( this, ScInsertTableDlg, DialogClosedHdl ) ); } diff --git a/sc/source/ui/miscdlgs/linkarea.cxx b/sc/source/ui/miscdlgs/linkarea.cxx index 94fc4e677dff..180e089f305e 100644 --- a/sc/source/ui/miscdlgs/linkarea.cxx +++ b/sc/source/ui/miscdlgs/linkarea.cxx @@ -84,8 +84,7 @@ void ScLinkedAreaDlg::dispose() IMPL_LINK_NOARG(ScLinkedAreaDlg, BrowseHdl, Button*, void) { if ( !pDocInserter ) - pDocInserter = new sfx2::DocumentInserter( - OUString::createFromAscii( ScDocShell::Factory().GetShortName() ) ); + pDocInserter = new sfx2::DocumentInserter(ScDocShell::Factory().GetFactoryName()); pDocInserter->StartExecuteModal( LINK( this, ScLinkedAreaDlg, DialogClosedHdl ) ); } -- cgit