diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-18 17:11:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-18 17:24:22 +0100 |
commit | 58d68a1bc9146334376206ae7ba8b1a6594a1040 (patch) | |
tree | 269d465b387964054dce91316b1d800dcc22e0e5 /uui | |
parent | bdc3053067175eea4d30d5ca6d304366174c9316 (diff) |
ConvertURLToSystemPath->getSystemPathFromFileURL
Change-Id: I7dc0e1b596f80b8f0870aed1722f711bb287ec0a
Diffstat (limited to 'uui')
-rw-r--r-- | uui/source/fltdlg.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/uui/source/fltdlg.cxx b/uui/source/fltdlg.cxx index 24e5476f2588..9e34f82906ef 100644 --- a/uui/source/fltdlg.cxx +++ b/uui/source/fltdlg.cxx @@ -23,10 +23,10 @@ #include <com/sun/star/util/XStringWidth.hpp> #include <cppuhelper/implbase1.hxx> -#include <unotools/localfilehelper.hxx> #include <tools/urlobj.hxx> #include <vcl/button.hxx> +#include <osl/file.hxx> #include <osl/mutex.hxx> #include <vcl/svapp.hxx> @@ -200,7 +200,8 @@ OUString FilterDialog::impl_buildUIFileName( const OUString& sName ) { OUString sShortName( sName ); - if( ::utl::LocalFileHelper::ConvertURLToSystemPath( sName, sShortName ) ) + if (osl::FileBase::getSystemPathFromFileURL(sName, sShortName) == osl::FileBase::E_None) + { // it's a system file ... build short name by using osl functionality } |