diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-18 20:38:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-18 20:59:44 +0100 |
commit | 28f3464a571a23a2c16bd0980e9021b95d011511 (patch) | |
tree | e7bd251056f867b09971b1443575bcfa3c428583 /sfx2 | |
parent | 75a8b1cf84ac718aa1c8d671cd27b0b10307f50a (diff) |
ConvertSystemPathToURL->getFileURLFromSystemPath
Change-Id: I1c60c60f9b5318626f42e33091920a4404fb6d1c
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/linkmgr2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx index 432ac511e771..6a934f31c6a8 100644 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -20,6 +20,7 @@ #include <comphelper/string.hxx> #include <sfx2/linkmgr.hxx> #include <com/sun/star/document/UpdateDocMode.hpp> +#include <osl/file.hxx> #include <sfx2/objsh.hxx> #include <svl/urihelper.hxx> #include <sot/formats.hxx> @@ -564,7 +565,7 @@ OUString lcl_DDE_RelToAbs( const OUString& rTopic, const OUString& rBaseURL ) OUString sRet; INetURLObject aURL( rTopic ); if( INetProtocol::NotValid == aURL.GetProtocol() ) - utl::LocalFileHelper::ConvertSystemPathToURL( rTopic, sRet ); + osl::FileBase::getFileURLFromSystemPath(rTopic, sRet); if( sRet.isEmpty() ) sRet = URIHelper::SmartRel2Abs( INetURLObject(rBaseURL), rTopic, URIHelper::GetMaybeFileHdl(), true ); return sRet; |