summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/ucbhelper/localfilehelper.cxx6
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&)