diff options
Diffstat (limited to 'unotools/source/ucbhelper/ucbhelper.cxx')
-rw-r--r-- | unotools/source/ucbhelper/ucbhelper.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx index 98c30d0f5fa6..ac3f4cf63b7a 100644 --- a/unotools/source/ucbhelper/ucbhelper.cxx +++ b/unotools/source/ucbhelper/ucbhelper.cxx @@ -56,7 +56,6 @@ #include <tools/urlobj.hxx> #include <ucbhelper/commandenvironment.hxx> #include <ucbhelper/content.hxx> -#include <unotools/localfilehelper.hxx> #include <unotools/ucbhelper.hxx> namespace { @@ -348,7 +347,9 @@ bool utl::UCBContentHelper::IsYounger( bool utl::UCBContentHelper::Exists(OUString const & url) { OUString pathname; - if (utl::LocalFileHelper::ConvertURLToPhysicalName(url, pathname)) { + if (osl::FileBase::getSystemPathFromFileURL(url, pathname) + == osl::FileBase::E_None) + { // Try to create a directory entry for the given URL: OUString url2; if (osl::FileBase::getFileURLFromSystemPath(pathname, url2) |