reportdesign/source/core/api/ReportEngineJFree.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 536f04b08eb68f0b2715f36e31cddc277ac9bda3
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Tue May 20 17:41:26 2025 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Wed May 21 08:09:19 2025 +0200

    reportdesign: Declare var where it's assigned
    
    Change-Id: I3bceb7ba549adf1f49561166dade106b75c5449d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185571
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/reportdesign/source/core/api/ReportEngineJFree.cxx 
b/reportdesign/source/core/api/ReportEngineJFree.cxx
index d90bfd3430c9..ff24fa6c2ce4 100644
--- a/reportdesign/source/core/api/ReportEngineJFree.cxx
+++ b/reportdesign/source/core/api/ReportEngineJFree.cxx
@@ -167,11 +167,10 @@ OUString OReportEngineJFree::getNewOutputName()
     }
     m_xReport->storeToStorage(xTemp,aEmpty); // store to temp file because it 
may contain information which isn't in the database yet.
 
-    OUString sFileURL;
     OUString sName = m_xReport->getCaption();
     if ( sName.isEmpty() )
         sName = m_xReport->getName();
-    sFileURL = ::utl::CreateTempURL(sName, false, sExt);
+    OUString sFileURL = ::utl::CreateTempURL(sName, false, sExt);
     if ( sFileURL.isEmpty() )
     {
         ::utl::TempFileNamed aTestFile(sName, false, sExt);

Reply via email to