diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-18 15:11:16 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-18 15:32:14 +0200 |
commit | 0b9b5f833cd8bb85437f2f89dcd3190eee1c161a (patch) | |
tree | 19a20027f8d4452665ef9f7bd8a0af3a2e255303 /package | |
parent | cfa853c07fd4632fa40e62a5b4474c55d4588416 (diff) |
Simplify ZipPackage::isLocalFile check
(vnd.sun.star.wfs is long gone)
Change-Id: I3e25f1728504cbad07bb97187a7bac23b33695dc
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zippackage/ZipPackage.cxx | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx index 1304e0ba4f3a..95a638a22b74 100644 --- a/package/source/zippackage/ZipPackage.cxx +++ b/package/source/zippackage/ZipPackage.cxx @@ -50,7 +50,6 @@ #include <com/sun/star/ucb/OpenMode.hpp> #include <com/sun/star/ucb/XProgressHandler.hpp> #include <com/sun/star/ucb/SimpleFileAccess.hpp> -#include <com/sun/star/ucb/UniversalContentBroker.hpp> #include <com/sun/star/io/XActiveDataStreamer.hpp> #include <com/sun/star/embed/XTransactedObject.hpp> #include <com/sun/star/embed/UseBackupException.hpp> @@ -72,7 +71,6 @@ #include <boost/scoped_ptr.hpp> #include <vector> -#include <ucbhelper/fileidentifierconverter.hxx> #include <comphelper/processfactory.hxx> #include <comphelper/seekableinput.hxx> #include <comphelper/storagehelper.hxx> @@ -175,18 +173,7 @@ ZipPackage::~ZipPackage() bool ZipPackage::isLocalFile() const { - OUString aSystemPath; - uno::Reference< XUniversalContentBroker > xUcb( - UniversalContentBroker::create( - m_xContext ) ); - try - { - aSystemPath = getSystemPathFromFileURL( xUcb, m_aURL ); - } - catch ( Exception& ) - { - } - return !aSystemPath.isEmpty(); + return m_aURL.startsWithIgnoreAsciiCase("file:"); } void ZipPackage::parseManifest() |