diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-02-28 11:01:55 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-02-28 22:54:56 +0100 |
commit | 7dc93bbf8a1fdea1a6723584c35e497cda558e85 (patch) | |
tree | 42f0baf423187d6faad59421977c83da717d0080 /desktop | |
parent | 84ef6d82546b044990f4efd57e51e29c6c6565c8 (diff) |
Don't do unnecessary check for trailing slash
The check is done in utl::TempFile::SetTempNameBaseDirectory
Change-Id: I62b40a4f53f68da14aae6fcdfbf4c2dc7515a2c5
Reviewed-on: https://gerrit.libreoffice.org/50501
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop')
-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 ); } |