Kaydet (Commit) 1ce99678 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Simplify from ucbhelper::getSystemPathFromFileURL to osl::FileBase

(vnd.sun.star.wfs is long gone)

Change-Id: Ica7d972c04cc065ffbd5debf72e1ec3eeb5c6c64
üst 42858662
......@@ -26,7 +26,6 @@
#include <unotools/tempfile.hxx>
#include <unotools/localfilehelper.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <ucbhelper/fileidentifierconverter.hxx>
#include <rtl/ustring.hxx>
#include <rtl/instance.hxx>
#include <osl/detail/file.h>
......@@ -120,15 +119,12 @@ OUString ConstructTempDir_Impl( const OUString* pParent )
com::sun::star::ucb::UniversalContentBroker::create(
comphelper::getProcessComponentContext() ) );
// if parent given try to use it
OUString aTmp( *pParent );
// test for valid filename
OUString aRet;
::osl::FileBase::getFileURLFromSystemPath(
::ucbhelper::getSystemPathFromFileURL( pBroker, aTmp ),
aRet );
if ( !aRet.isEmpty() )
if ((osl::FileBase::getSystemPathFromFileURL(*pParent, aRet)
== osl::FileBase::E_None)
&& (osl::FileBase::getFileURLFromSystemPath(aRet, aRet)
== osl::FileBase::E_None))
{
::osl::DirectoryItem aItem;
sal_Int32 i = aRet.getLength();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment