diff options
-rw-r--r-- | desktop/source/app/appinit.cxx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/desktop/source/app/appinit.cxx b/desktop/source/app/appinit.cxx index 2aec3928ad87..2e302be587a3 100644 --- a/desktop/source/app/appinit.cxx +++ b/desktop/source/app/appinit.cxx @@ -248,18 +248,11 @@ void Desktop::CreateTemporaryDirectory() throw; } - // set temp base directory - if ( aTempBaseURL.endsWith( "/" ) ) - aTempBaseURL = aTempBaseURL.copy( 0, aTempBaseURL.getLength() - 1 ); - // create new current temporary directory OUString aTempPath = ::utl::TempFile::SetTempNameBaseDirectory( aTempBaseURL ); if ( aTempPath.isEmpty() && ::osl::File::getTempDirURL( aTempBaseURL ) == osl::FileBase::E_None ) { - if ( aTempBaseURL.endsWith( "/" ) ) - aTempBaseURL = aTempBaseURL.copy( 0, aTempBaseURL.getLength() - 1 ); - aTempPath = ::utl::TempFile::SetTempNameBaseDirectory( aTempBaseURL ); } |