From 28f3464a571a23a2c16bd0980e9021b95d011511 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 18 Aug 2015 20:38:42 +0100 Subject: ConvertSystemPathToURL->getFileURLFromSystemPath Change-Id: I1c60c60f9b5318626f42e33091920a4404fb6d1c --- cui/source/dialogs/hldocntp.cxx | 2 +- cui/source/dialogs/hldoctp.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cui') diff --git a/cui/source/dialogs/hldocntp.cxx b/cui/source/dialogs/hldocntp.cxx index 2cace41ede29..4581dbad2d45 100644 --- a/cui/source/dialogs/hldocntp.cxx +++ b/cui/source/dialogs/hldocntp.cxx @@ -408,7 +408,7 @@ IMPL_LINK_NOARG(SvxHyperlinkNewDocTp, ClickNewHdl_Impl) OUString aStrURL; OUString aTempStrURL( m_pCbbPath->GetText() ); - utl::LocalFileHelper::ConvertSystemPathToURL( aTempStrURL, aStrURL ); + osl::FileBase::getFileURLFromSystemPath( aTempStrURL, aStrURL ); OUString aStrPath = aStrURL; bool bZeroPath = aStrPath.isEmpty(); diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx index a7087f3efa75..2943637a2a30 100644 --- a/cui/source/dialogs/hldoctp.cxx +++ b/cui/source/dialogs/hldoctp.cxx @@ -127,7 +127,7 @@ OUString SvxHyperlinkDocTp::GetCurrentURL () if ( aURL.GetProtocol() != INetProtocol::NotValid ) // maybe the path is already a valid aStrURL = aStrPath; // hyperlink, then we can use this path directly else - utl::LocalFileHelper::ConvertSystemPathToURL( aStrPath, aStrURL ); + osl::FileBase::getFileURLFromSystemPath( aStrPath, aStrURL ); //#105788# always create a URL even if it is not valid if( aStrURL == aEmptyStr ) -- cgit