summaryrefslogtreecommitdiff
path: root/desktop
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 /desktop
parent520053459aa6a34b6d9ad52d97704399e5138d3d (diff)
Consolidate isFileUrl checks
Change-Id: I1b74fdfaa09c4d0d6c296253958e83e78b546a9a
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/app.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 861cb3ff2bd2..798b69552ab3 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -77,6 +77,7 @@
#include <sal/log.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <comphelper/configuration.hxx>
+#include <comphelper/fileurl.hxx>
#include <comphelper/processfactory.hxx>
#include <unotools/bootstrap.hxx>
#include <unotools/configmgr.hxx>
@@ -2429,7 +2430,7 @@ OUString GetURL_Impl(
// dont touch file urls, those should already be in internal form
// they won't get better here (#112849#)
- if (rName.startsWith("file:"))
+ if (comphelper::isFileUrl(rName))
{
return rName;
}