From 5da0dce19caaf87a6fe53750a7e9ea5d564d6a12 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 19 Aug 2015 12:24:37 +0200 Subject: Consolidate isFileUrl checks Change-Id: I1b74fdfaa09c4d0d6c296253958e83e78b546a9a --- ucb/source/ucp/file/bc.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ucb') 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 #include #include +#include #include #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 ); -- cgit