summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-18 15:11:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-18 15:32:15 +0200
commit428586623cbcc4cee9f930db5980a63e6f9ec6e8 (patch)
tree6adb98f2d7437dde2ceec8383f01e985f519a58c /svl
parent0b9b5f833cd8bb85437f2f89dcd3190eee1c161a (diff)
Simplify isLocalFile_Impl check
(vnd.sun.star.wfs is long gone) Change-Id: I5e6659302d9ff3cd4e2ae4bb09066b73f842f17f
Diffstat (limited to 'svl')
-rw-r--r--svl/source/fsstor/fsstorage.cxx17
1 files changed, 1 insertions, 16 deletions
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx
index c463f9610c7f..625cd951379f 100644
--- a/svl/source/fsstor/fsstorage.cxx
+++ b/svl/source/fsstor/fsstorage.cxx
@@ -21,7 +21,6 @@
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/embed/XTransactedObject.hpp>
#include <com/sun/star/ucb/NameClash.hpp>
-#include <com/sun/star/ucb/UniversalContentBroker.hpp>
#include <com/sun/star/ucb/XProgressHandler.hpp>
#include <com/sun/star/ucb/XContentAccess.hpp>
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
@@ -54,7 +53,6 @@
#include <unotools/ucbhelper.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <unotools/streamwrap.hxx>
-#include <ucbhelper/fileidentifierconverter.hxx>
#include <ucbhelper/content.hxx>
#include "fsstorage.hxx"
@@ -67,20 +65,7 @@ using namespace ::com::sun::star;
// TODO: move to a standard helper
bool isLocalFile_Impl( const OUString& aURL )
{
- OUString aSystemPath;
-
- try
- {
- aSystemPath = ::ucbhelper::getSystemPathFromFileURL(
- ucb::UniversalContentBroker::create(
- comphelper::getProcessComponentContext() ),
- aURL );
- }
- catch ( uno::Exception& )
- {
- }
-
- return ( !aSystemPath.isEmpty() );
+ return aURL.startsWithIgnoreAsciiCase("file:");
}
struct FSStorage_Impl