framework/source/services/autorecovery.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit eef0c5d4d45ba35acfb6d8f7551fe565ca4badaa
Author:     Justin Luth <jl...@mail.com>
AuthorDate: Tue Aug 1 14:00:35 2023 -0400
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Thu Aug 3 03:37:42 2023 +0200

    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 <jl...@mail.com>

diff --git a/framework/source/services/autorecovery.cxx 
b/framework/source/services/autorecovery.cxx
index 902e180320ee..4eb7000afeac 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -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 !!!
             }

Reply via email to