summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2020-03-13 12:21:40 +0100
committerJan Holesovsky <kendy@collabora.com>2020-03-26 12:45:40 +0100
commit0d1e49036820e7b9c0d063305e0773ea3e42ea80 (patch)
treefe46ab2101f539ca0d0a65a01c3a581fc413f8ba
parentf3dcc6692b15e152114b647235b3ddc19135adce (diff)
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 <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx1
1 files changed, 0 insertions, 1 deletions
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;