INTEGRATION: CWS sb87 (1.24.6); FILE MERGED
2008/04/24 13:17:08 sb 1.24.6.2: RESYNC: (1.24-1.25); FILE MERGED 2008/04/10 07:27:19 sb 1.24.6.1: #i87730# use tools::getProcessWorkingDir instead of osl_getProcessWorkingDir
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* $RCSfile: bootstrap.cxx,v $
|
||||
* $Revision: 1.25 $
|
||||
* $Revision: 1.26 $
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
@@ -44,6 +44,7 @@
|
||||
// ---------------------------------------------------------------------------------------
|
||||
#include <rtl/bootstrap.hxx>
|
||||
#include <osl/process.h> // for osl_getExecutableFile
|
||||
#include "tools/getprocessworkingdir.hxx"
|
||||
|
||||
// ---------------------------------------------------------------------------------------
|
||||
// #define this to a non-zero value, if remembering defaults is not supported properly
|
||||
@@ -263,8 +264,8 @@ bool implEnsureAbsolute(OUString & _rsURL) // also strips embedded dots !!
|
||||
{
|
||||
using osl::File;
|
||||
|
||||
OUString sBasePath = _rsURL;
|
||||
OSL_VERIFY(osl_Process_E_None == osl_getProcessWorkingDir(&sBasePath.pData));
|
||||
OUString sBasePath;
|
||||
OSL_VERIFY(tools::getProcessWorkingDir(&sBasePath));
|
||||
|
||||
OUString sAbsolute;
|
||||
if ( File::E_None == File::getAbsoluteFileURL(sBasePath, _rsURL, sAbsolute))
|
||||
|
Reference in New Issue
Block a user