summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfexport
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-11-03 15:01:43 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-11-03 23:21:17 +0100
commitee1154d7fe84d507ce977b851c4044cafe0b9da9 (patch)
treeb44495ad677e06b10ec73d28421e488d60fb9e73 /sw/qa/extras/odfexport
parentb7d53247eb2fab04f5f6d82d405f1ac0c73542b2 (diff)
swmodeltestbase: use maTempFile everywhere
Change-Id: Ifd840984e4144599f2527702a57688863854b7ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142235 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/extras/odfexport')
-rw-r--r--sw/qa/extras/odfexport/odfexport.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index d5fe2c8cf706..0fa0f9b5ed30 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -901,10 +901,9 @@ CPPUNIT_TEST_FIXTURE(Test, testFdo58949)
* and replacement image) OLE objects using UNO, so we'll check the zip file directly.
*/
- utl::TempFileNamed aTempFile;
- save("writer8", aTempFile);
+ save("writer8");
- uno::Sequence<uno::Any> aArgs{ uno::Any(aTempFile.GetURL()) };
+ uno::Sequence<uno::Any> aArgs{ uno::Any(maTempFile.GetURL()) };
uno::Reference<container::XNameAccess> xNameAccess(m_xSFactory->createInstanceWithArguments("com.sun.star.packages.zip.ZipFileAccess", aArgs), uno::UNO_QUERY);
const css::uno::Sequence<OUString> aNames(xNameAccess->getElementNames());
// The exported document must have three objects named ObjNNN. The names are assigned in