diff options
Diffstat (limited to 'comphelper/source/officeinstdir/officeinstallationdirectories.cxx')
-rw-r--r-- | comphelper/source/officeinstdir/officeinstallationdirectories.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/comphelper/source/officeinstdir/officeinstallationdirectories.cxx b/comphelper/source/officeinstdir/officeinstallationdirectories.cxx index 044eeaa59287..7ba751c0951b 100644 --- a/comphelper/source/officeinstdir/officeinstallationdirectories.cxx +++ b/comphelper/source/officeinstdir/officeinstallationdirectories.cxx @@ -32,6 +32,7 @@ #include <osl/file.hxx> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/util/theMacroExpander.hpp> +#include <comphelper/fileurl.hxx> #include "officeinstallationdirectories.hxx" @@ -46,7 +47,7 @@ using namespace comphelper; static bool makeCanonicalFileURL( OUString & rURL ) { - OSL_ENSURE(rURL.startsWithIgnoreAsciiCase("file:"), "File URL expected!"); + OSL_ENSURE(comphelper::isFileUrl(rURL), "File URL expected!"); OUString aNormalizedURL; if ( osl::FileBase::getAbsoluteFileURL( OUString(), |