sw/qa/extras/inc/swmodeltestbase.hxx | 1 - 1 file changed, 1 deletion(-)
New commits: commit 0d1e49036820e7b9c0d063305e0773ea3e42ea80 Author: Jan Holesovsky <[email protected]> AuthorDate: Fri Mar 13 12:21:40 2020 +0100 Commit: Jan Holesovsky <[email protected]> CommitDate: Thu Mar 26 12:45:40 2020 +0100 sw unit testing: Don't force EnableKillingFile() in save(). This is an unexpected sideeffect, it should be up to the caller to decide whether to enable or disable removal of the tempfile; otherwise a debugging code like: utl::TempFile aTempFile; aTempFile.EnableKillingFile(false); SAL_DEBUG("tempfile: " << aTempFile.GetURL()); save("writer8", aTempFile); does not preserve the temp file. Change-Id: If57cc9cee683c8373cf3faba4a6f23ce78121012 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90461 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Jan Holesovsky <[email protected]> diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx index d3d64c8ea434..57da6dc60c83 100644 --- a/sw/qa/extras/inc/swmodeltestbase.hxx +++ b/sw/qa/extras/inc/swmodeltestbase.hxx @@ -861,7 +861,6 @@ protected: /// Save the loaded document to a tempfile. Can be used to check the resulting docx/odt directly as a ZIP file. void save(const OUString& aFilterName, utl::TempFile& rTempFile) { - rTempFile.EnableKillingFile(); uno::Reference<frame::XStorable> xStorable(mxComponent, uno::UNO_QUERY); utl::MediaDescriptor aMediaDescriptor; aMediaDescriptor["FilterName"] <<= aFilterName; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
