diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-18 14:19:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-18 14:19:59 +0200 |
commit | 1242a3a55ffb8c5716d0a6f2e17dadc1f2c02818 (patch) | |
tree | e1e84198ba3fdcc9b8e6f254223e8758e820ff79 /unotools | |
parent | 6e403346634113f7b5d582774864baa4555b2843 (diff) |
Remove obsolete getLocalFileURL
...vnd.sun.star.wfs is long gone
Change-Id: I64da15a6c16e429aeda57c435e353891fb28f04d
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/ucbhelper/localfilehelper.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/unotools/source/ucbhelper/localfilehelper.cxx b/unotools/source/ucbhelper/localfilehelper.cxx index b45976984a57..d5ff1e4ef5e5 100644 --- a/unotools/source/ucbhelper/localfilehelper.cxx +++ b/unotools/source/ucbhelper/localfilehelper.cxx @@ -82,8 +82,7 @@ bool LocalFileHelper::ConvertPhysicalNameToURL(const OUString& rName, OUString& comphelper::getProcessComponentContext() ) ); try { - OUString aBase( ::ucbhelper::getLocalFileURL() ); - rReturn = ::ucbhelper::getFileURLFromSystemPath( pBroker, aBase, rName ); + rReturn = ::ucbhelper::getFileURLFromSystemPath( pBroker, "file:///", rName ); } catch (const ::com::sun::star::uno::RuntimeException&) { @@ -101,8 +100,7 @@ bool LocalFileHelper::ConvertURLToPhysicalName(const OUString& rName, OUString& try { INetURLObject aObj( rName ); - INetURLObject aLocal( ::ucbhelper::getLocalFileURL() ); - if ( aObj.GetProtocol() == aLocal.GetProtocol() ) + if ( aObj.GetProtocol() == INetProtocol::File ) rReturn = ::ucbhelper::getSystemPathFromFileURL( pBroker, rName ); } catch (const ::com::sun::star::uno::RuntimeException&) |