sd/source/filter/pdf/sdpdffilter.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 153af9ebb56c665815736bc2b427aeb0b9ddd0f9
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Oct 10 11:00:12 2025 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Oct 10 13:31:43 2025 +0200

    replace temp debugging file name with aTempFile
    
    Change-Id: I01c8e9dabb4e14810f1baba23e253bd788b6bad2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192158
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/sd/source/filter/pdf/sdpdffilter.cxx 
b/sd/source/filter/pdf/sdpdffilter.cxx
index 7973057ddfd1..2271d92118ae 100644
--- a/sd/source/filter/pdf/sdpdffilter.cxx
+++ b/sd/source/filter/pdf/sdpdffilter.cxx
@@ -289,8 +289,6 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool 
TestFODGExportPDF(SvStream& rStream)
     {
         utl::TempFileFast aTempFile;
 
-        SvFileStream aOutputStream("/tmp/outputthing.fodg", 
StreamMode::READWRITE);
-
         uno::Reference<lang::XMultiServiceFactory> xMultiServiceFactory(
             comphelper::getProcessServiceFactory());
         uno::Reference<uno::XInterface> xInterface(
@@ -316,7 +314,8 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool 
TestFODGExportPDF(SvStream& rStream)
         uno::Reference<document::XExporter> xExporter(xFODGFilter, 
uno::UNO_QUERY);
         xExporter->setSourceDocument(xModel);
 
-        uno::Reference<io::XOutputStream> xOutputStream(new 
utl::OStreamWrapper(aOutputStream));
+        uno::Reference<io::XOutputStream> xOutputStream(
+            new 
utl::OStreamWrapper(*aTempFile.GetStream(StreamMode::READWRITE)));
 
         uno::Sequence<beans::PropertyValue> 
aDescriptor(comphelper::InitPropertySequence(
             { { "FilterName", uno::Any(u"OpenDocument Drawing Flat XML"_ustr) 
},

Reply via email to