summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-19 12:24:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-19 12:24:37 +0200
commit5da0dce19caaf87a6fe53750a7e9ea5d564d6a12 (patch)
tree52028a1384c5074886fdd1722f71c32f3970146f /sdext
parent520053459aa6a34b6d9ad52d97704399e5138d3d (diff)
Consolidate isFileUrl checks
Change-Id: I1b74fdfaa09c4d0d6c296253958e83e78b546a9a
Diffstat (limited to 'sdext')
-rw-r--r--sdext/Library_pdfimport.mk1
-rw-r--r--sdext/source/pdfimport/filterdet.cxx3
2 files changed, 3 insertions, 1 deletions
diff --git a/sdext/Library_pdfimport.mk b/sdext/Library_pdfimport.mk
index ca7d5ac80920..dec3c3aa75c1 100644
--- a/sdext/Library_pdfimport.mk
+++ b/sdext/Library_pdfimport.mk
@@ -20,6 +20,7 @@ $(eval $(call gb_Library_set_include,pdfimport,\
$(eval $(call gb_Library_use_libraries,pdfimport,\
basegfx \
+ comphelper \
vcl \
cppu \
cppuhelper \
diff --git a/sdext/source/pdfimport/filterdet.cxx b/sdext/source/pdfimport/filterdet.cxx
index 23bb0c91ab24..e966529f7eb2 100644
--- a/sdext/source/pdfimport/filterdet.cxx
+++ b/sdext/source/pdfimport/filterdet.cxx
@@ -32,6 +32,7 @@
#include <com/sun/star/io/XStream.hpp>
#include <com/sun/star/io/XSeekable.hpp>
#include <com/sun/star/io/TempFile.hpp>
+#include <comphelper/fileurl.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <boost/scoped_ptr.hpp>
#include <string.h>
@@ -256,7 +257,7 @@ OUString SAL_CALL PDFDetector::detect( uno::Sequence< beans::PropertyValue >& rF
// check for hybrid PDF
oslFileHandle aFile = NULL;
if( bSuccess &&
- ( aURL.isEmpty() || !aURL.startsWith( "file:" ) )
+ ( aURL.isEmpty() || !comphelper::isFileUrl(aURL) )
)
{
sal_uInt64 nWritten = 0;