tdf#71550 autorecovery: use osl::File::Remove when isEmptyFileUrl
Mike K suggested I just use the simpler, faster function in this case. Change-Id: I0f7f6611f12f88cd1daa4104b58eb44365a44ae3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155271 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com>
This commit is contained in:
@@ -3127,7 +3127,7 @@ void AutoRecovery::implts_saveOneDoc(const OUString&
|
||||
{
|
||||
// delete the empty file created by implts_generateNewTempURL
|
||||
if (tools::isEmptyFileUrl(rInfo.NewTempURL))
|
||||
AutoRecovery::st_impl_removeFile(rInfo.NewTempURL);
|
||||
osl::File::remove(rInfo.NewTempURL);
|
||||
|
||||
throw; // force stacktrace to know if there exist might other reasons, why an AutoSave can fail !!!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user