sw/source/filter/ww8/wrtw8esh.cxx | 8 ++++---- sw/source/filter/ww8/wrtw8nds.cxx | 2 +- sw/source/filter/ww8/wrtw8sty.cxx | 2 +- sw/source/filter/ww8/wrtww8.cxx | 2 +- sw/source/filter/ww8/wrtww8gr.cxx | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-)
New commits: commit 8df214594d0a1a6eb82c645b739a7cebf1b3b3de Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri Jul 11 16:35:58 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Jul 11 22:06:23 2025 +0200 don't use a static mutable array Change-Id: I7a85f9b189f56a09f724c157a620fa6fff0f92a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187750 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sw/source/filter/ww8/wrtw8esh.cxx b/sw/source/filter/ww8/wrtw8esh.cxx index c621d8e54c64..1f0460162af5 100644 --- a/sw/source/filter/ww8/wrtw8esh.cxx +++ b/sw/source/filter/ww8/wrtw8esh.cxx @@ -427,7 +427,7 @@ void WW8Export::DoComboBox(const OUString &rName, WriteChar( 0x01 ); - static sal_uInt8 aArr1[] = + sal_uInt8 aArr1[] = { 0x03, 0x6a, 0,0,0,0, // sprmCPicLocation 0x06, 0x08, 0x01, // sprmCFData @@ -435,7 +435,7 @@ void WW8Export::DoComboBox(const OUString &rName, 0x02, 0x08, 0x01 // sprmCFFieldVanish }; sal_uInt8* pDataAdr = aArr1 + 2; - Set_UInt32( pDataAdr, nDataStt ); + Set_UInt32(pDataAdr, nDataStt); m_pChpPlc->AppendFkpEntry(Strm().Tell(), sizeof(aArr1), aArr1); @@ -470,7 +470,7 @@ void WW8Export::DoFormText(const SwInputField * pField) m_pChpPlc->AppendFkpEntry( Strm().Tell() ); WriteChar( 0x01 ); - static sal_uInt8 aArr1[] = { + sal_uInt8 aArr1[] = { 0x02, 0x08, 0x81, // sprmCFFieldVanish 0x03, 0x6a, 0,0,0,0, // sprmCPicLocation @@ -496,7 +496,7 @@ void WW8Export::DoFormText(const SwInputField * pField) const OUString fieldStr( pField->ExpandField(true, nullptr) ); SwWW8Writer::WriteString16(Strm(), fieldStr, false); - static sal_uInt8 aArr2[] = { + sal_uInt8 aArr2[] = { 0x55, 0x08, 0x01, // sprmCFSpec 0x75, 0x08, 0x01 // ??? }; diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index ce860f1cf2c1..1c56f2e0effb 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -1170,7 +1170,7 @@ bool WW8AttributeOutput::StartURL(const OUString& rUrl, const OUString& rTarget, // WinWord 2000 doesn't write this - so it's a temp solution by W97 ? m_rWW8Export.WriteChar( 0x01 ); - static sal_uInt8 aArr1[] = { + sal_uInt8 aArr1[] = { 0x03, 0x6a, 0,0,0,0, // sprmCPicLocation 0x06, 0x08, 0x01, // sprmCFData diff --git a/sw/source/filter/ww8/wrtw8sty.cxx b/sw/source/filter/ww8/wrtw8sty.cxx index 79b8371714d0..c4b23d00503e 100644 --- a/sw/source/filter/ww8/wrtw8sty.cxx +++ b/sw/source/filter/ww8/wrtw8sty.cxx @@ -2105,7 +2105,7 @@ void WW8_WrPlcSepx::WritePlcSed( WW8Export& rWrt ) const rWrt.m_pTableStrm->WriteUInt32(nP); } - static WW8_SED aSed = {{4, 0},{0, 0, 0, 0},{0, 0},{0xff, 0xff, 0xff, 0xff}}; + WW8_SED aSed = {{4, 0},{0, 0, 0, 0},{0, 0},{0xff, 0xff, 0xff, 0xff}}; for (const auto & rSectionAttribute : m_SectionAttributes) { diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index f59a749b3ca0..e844bd6b2ad8 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -4206,7 +4206,7 @@ void WW8Export::WriteFormData( const ::sw::mark::Fieldmark& rFieldmark ) m_pChpPlc->AppendFkpEntry(Strm().Tell()); WriteChar(0x01); - static sal_uInt8 aArr1[] = + sal_uInt8 aArr1[] = { 0x03, 0x6a, 0,0,0,0, // sprmCPicLocation diff --git a/sw/source/filter/ww8/wrtww8gr.cxx b/sw/source/filter/ww8/wrtww8gr.cxx index f56074685a3a..505a9f966c57 100644 --- a/sw/source/filter/ww8/wrtww8gr.cxx +++ b/sw/source/filter/ww8/wrtww8gr.cxx @@ -195,7 +195,7 @@ void WW8Export::OutputOLENode( const SwOLENode& rOLENode ) sal_uInt8 *pSpecOLE; sal_uInt8 *pDataAdr; short nSize; - static sal_uInt8 aSpecOLE_WW8[] = { + sal_uInt8 aSpecOLE_WW8[] = { 0x03, 0x6a, 0, 0, 0, 0, // sprmCPicLocation 0x0a, 0x08, 1, // sprmCFOLE2 0x56, 0x08, 1 // sprmCFObj