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:
Justin Luth
2023-08-03 03:37:42 +02:00
parent 3438733217
commit eef0c5d4d4
+1 -1
View File
@@ -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 !!!
}