summaryrefslogtreecommitdiff
path: root/ucb
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 /ucb
parent520053459aa6a34b6d9ad52d97704399e5138d3d (diff)
Consolidate isFileUrl checks
Change-Id: I1b74fdfaa09c4d0d6c296253958e83e78b546a9a
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/file/bc.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx
index f49b152d9f6b..86127c6eeb37 100644
--- a/ucb/source/ucp/file/bc.cxx
+++ b/ucb/source/ucp/file/bc.cxx
@@ -34,6 +34,7 @@
#include <com/sun/star/beans/PropertySetInfoChange.hpp>
#include <com/sun/star/ucb/ContentAction.hpp>
#include <com/sun/star/ucb/NameClash.hpp>
+#include <comphelper/fileurl.hxx>
#include <cppuhelper/supportsservice.hxx>
#include "filglob.hxx"
#include "filid.hxx"
@@ -1065,7 +1066,7 @@ BaseContent::transfer( sal_Int32 nMyCommandIdentifier,
if( m_nState & Deleted )
return;
- if( !aTransferInfo.SourceURL.startsWith( "file:" ) )
+ if( !comphelper::isFileUrl(aTransferInfo.SourceURL) )
{
m_pMyShell->installError( nMyCommandIdentifier,
TASKHANDLING_TRANSFER_INVALIDSCHEME );